src/Pure/System/linux.scala
changeset 73340 0ffcad1f6130
parent 73120 c3589f2dff31
child 73534 e7fb17bca374
--- a/src/Pure/System/linux.scala	Mon Mar 01 20:12:09 2021 +0100
+++ b/src/Pure/System/linux.scala	Mon Mar 01 22:22:12 2021 +0100
@@ -95,7 +95,7 @@
   def user_add(name: String,
     description: String = "",
     system: Boolean = false,
-    ssh_setup: Boolean = false)
+    ssh_setup: Boolean = false): Unit =
   {
     require(!description.contains(','), "malformed description")
 
@@ -124,19 +124,17 @@
   def service_operation(op: String, name: String): Unit =
     Isabelle_System.bash("systemctl " + Bash.string(op) + " " + Bash.string(name)).check
 
-  def service_enable(name: String) { service_operation("enable", name) }
-  def service_disable(name: String) { service_operation("disable", name) }
-  def service_start(name: String) { service_operation("start", name) }
-  def service_stop(name: String) { service_operation("stop", name) }
-  def service_restart(name: String) { service_operation("restart", name) }
+  def service_enable(name: String): Unit = service_operation("enable", name)
+  def service_disable(name: String): Unit = service_operation("disable", name)
+  def service_start(name: String): Unit = service_operation("start", name)
+  def service_stop(name: String): Unit = service_operation("stop", name)
+  def service_restart(name: String): Unit = service_operation("restart", name)
 
-  def service_shutdown(name: String)
-  {
+  def service_shutdown(name: String): Unit =
     try { service_stop(name) }
     catch { case ERROR(_) => }
-  }
 
-  def service_install(name: String, spec: String)
+  def service_install(name: String, spec: String): Unit =
   {
     service_shutdown(name)