diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-05-20 13:30:47 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-05-20 13:30:47 +0000 |
commit | af21e602b1dad1b7fd2c00f570d1d5605b9bb277 (patch) | |
tree | 7242f87f8cdb66dbe1912fcf48d18b5af787e43a /skel | |
parent | bcd0758e17995c98662cbcaf15eaa62d1fcc8356 (diff) | |
download | s6-linux-init-af21e602b1dad1b7fd2c00f570d1d5605b9bb277.tar.xz |
Improve UX following IRC feedback, prepare for 1.0.1.0
Diffstat (limited to 'skel')
-rwxr-xr-x | skel/runlevel | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/skel/runlevel b/skel/runlevel index 51789f3..8ca2fd1 100755 --- a/skel/runlevel +++ b/skel/runlevel @@ -5,6 +5,9 @@ ### requests a machine state change via telinit. ### Ideally, it should just be a call to the service manager. +test "$#" -gt 0 || { echo 'runlevel: fatal: too few arguments' 1>&2 ; exit 100 ; } + + ### If your services are managed by sysv-rc: # exec /etc/init.d/rc "$1" |