diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-04-04 14:03:23 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-04-04 14:08:12 +0200 |
commit | 56e6004336aeb3a7e92e8418430217c42feb2515 (patch) | |
tree | 348e853614697e828b091150716b1c4198f75ca7 /services | |
parent | ca7b7c15c5ecd344e844411e4b8409e552a3b06d (diff) |
Simplifiy service file syntax
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'services')
-rw-r--r-- | services/agetty.in | 12 | ||||
-rw-r--r-- | services/hostname.in | 12 | ||||
-rw-r--r-- | services/hwclock.in | 10 | ||||
-rw-r--r-- | services/loopback.in | 16 | ||||
-rw-r--r-- | services/reboot.in | 14 | ||||
-rw-r--r-- | services/shutdown.in | 14 | ||||
-rw-r--r-- | services/sigkill.in | 16 | ||||
-rw-r--r-- | services/sigterm.in | 18 | ||||
-rw-r--r-- | services/sync.in | 16 | ||||
-rwxr-xr-x | services/sysctl.in | 14 | ||||
-rw-r--r-- | services/sysinit | 6 |
11 files changed, 74 insertions, 74 deletions
diff --git a/services/agetty.in b/services/agetty.in index c0ae21b..c4f78ad 100644 --- a/services/agetty.in +++ b/services/agetty.in @@ -1,6 +1,6 @@ -description = "agetty on %0" -exec = "@SBINPATH@/agetty %0 linux" -type = respawn -target = boot -after = sysinit -tty = "/dev/%0" +description agetty on %0 +exec "@SBINPATH@/agetty" %0 linux +type respawn +target boot +after sysinit +tty "/dev/%0" diff --git a/services/hostname.in b/services/hostname.in index be0020d..55b71d9 100644 --- a/services/hostname.in +++ b/services/hostname.in @@ -1,6 +1,6 @@ -description = "reload hostname" -exec = "@BINPATH@/hostname --file /etc/hostname" -type = wait -target = boot -before = sysinit -after = hwclock +description reload hostname +exec "@BINPATH@/hostname" --file /etc/hostname +type wait +target boot +before sysinit +after hwclock diff --git a/services/hwclock.in b/services/hwclock.in index e8a2513..d07b3e7 100644 --- a/services/hwclock.in +++ b/services/hwclock.in @@ -1,5 +1,5 @@ -description = "restore time from RTC" -exec = "@SBINPATH@/hwclock --hctosys --utc" -type = wait -target = boot -before = sysinit +description restore time from RTC +exec "@SBINPATH@/hwclock" --hctosys --utc +type wait +target boot +before sysinit diff --git a/services/loopback.in b/services/loopback.in index 741ed1c..c44306c 100644 --- a/services/loopback.in +++ b/services/loopback.in @@ -1,9 +1,9 @@ -description = "configure network loopback device" -type = wait -target = boot -before = sysinit -after = hwclock -after = hostname +description configure network loopback device +type wait +target boot +before sysinit +after hwclock +after hostname -exec = "@SBINPATH@/ip addr add 127.0.0.1/8 dev lo brd +" -exec = "@SBINPATH@/ip link set lo up" +exec "@SBINPATH@/ip" addr add 127.0.0.1/8 dev lo brd + +exec "@SBINPATH@/ip" link set lo up diff --git a/services/reboot.in b/services/reboot.in index 94d1b78..3c3c689 100644 --- a/services/reboot.in +++ b/services/reboot.in @@ -1,7 +1,7 @@ -description = "system reboot" -exec = "@SBINPATH@/shutdown -nrf" -type = wait -target = reboot -after = "sync" -after = "sigkill" -after = "sigterm" +description system reboot +exec "@SBINPATH@/shutdown" -nrf +type wait +target reboot +after sync +after sigkill +after sigterm diff --git a/services/shutdown.in b/services/shutdown.in index 560dd47..c357b36 100644 --- a/services/shutdown.in +++ b/services/shutdown.in @@ -1,7 +1,7 @@ -description = "system shutdown" -exec = "@SBINPATH@/shutdown -npf" -type = wait -target = shutdown -after = "sync" -after = "sigkill" -after = "sigterm" +description system shutdown +exec "@SBINPATH@/shutdown" -npf +type wait +target shutdown +after sync +after sigkill +after sigterm diff --git a/services/sigkill.in b/services/sigkill.in index 10e96b4..8f09dd5 100644 --- a/services/sigkill.in +++ b/services/sigkill.in @@ -1,8 +1,8 @@ -description = "send SIGKILL to remaining processes" -exec = "@SCRIPTDIR@/killall5 9" -type = wait -target = "%0" -after = "sigterm" -before = "sync" -before = "shutdown" -before = "reboot" +description send SIGKILL to remaining processes +exec "@SCRIPTDIR@/killall5" 9 +type wait +target %0 +after sigterm +before sync +before shutdown +before reboot diff --git a/services/sigterm.in b/services/sigterm.in index 126d144..b00610c 100644 --- a/services/sigterm.in +++ b/services/sigterm.in @@ -1,9 +1,9 @@ -description = "send SIGTERM to all processes" -exec = "@SCRIPTDIR@/killall5 15" -exec = "@BINPATH@/sleep 5" -type = wait -target = "%0" -before = "sigkill" -before = "sync" -before = "reboot" -before = "shutdown" +description send SIGTERM to all processes +exec "@SCRIPTDIR@/killall5" 15 +exec "@BINPATH@/sleep" 5 +type wait +target %0 +before sigkill +before sync +before reboot +before shutdown diff --git a/services/sync.in b/services/sync.in index 69571cf..0ffb9a5 100644 --- a/services/sync.in +++ b/services/sync.in @@ -1,8 +1,8 @@ -description = "sync" -exec = "@BINPATH@/sync" -type = wait -target = "%0" -after = "sigkill" -after = "sigterm" -before = "reboot" -before = "shutdown" +description sync +exec "@BINPATH@/sync" +type wait +target %0 +after sigkill +after sigterm +before reboot +before shutdown diff --git a/services/sysctl.in b/services/sysctl.in index cd7b217..61edaf3 100755 --- a/services/sysctl.in +++ b/services/sysctl.in @@ -1,7 +1,7 @@ -description = "configure kernel paramters" -exec = "@SBINPATH@/sysctl --system" -type = wait -target = boot -before = sysinit -after = hwclock -after = hostname +description configure kernel paramters +exec "@SBINPATH@/sysctl" --system +type wait +target boot +before sysinit +after hwclock +after hostname diff --git a/services/sysinit b/services/sysinit index 12e5c55..cb5eb6b 100644 --- a/services/sysinit +++ b/services/sysinit @@ -1,3 +1,3 @@ -description = "basic system initialization" -type = once -target = boot +description basic system initialization +type once +target boot |