From 56e6004336aeb3a7e92e8418430217c42feb2515 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 4 Apr 2018 14:03:23 +0200 Subject: Simplifiy service file syntax Signed-off-by: David Oberhollenzer --- services/agetty.in | 12 ++++++------ services/hostname.in | 12 ++++++------ services/hwclock.in | 10 +++++----- services/loopback.in | 16 ++++++++-------- services/reboot.in | 14 +++++++------- services/shutdown.in | 14 +++++++------- services/sigkill.in | 16 ++++++++-------- services/sigterm.in | 18 +++++++++--------- services/sync.in | 16 ++++++++-------- services/sysctl.in | 14 +++++++------- services/sysinit | 6 +++--- 11 files changed, 74 insertions(+), 74 deletions(-) (limited to 'services') 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 -- cgit v1.2.3