Merge branch 'master' of gitea:mollusk/jitty-scripts

This commit is contained in:
mollusk 2020-03-31 08:47:42 -07:00
commit 9687642456

6
svc.sh
View File

@ -35,7 +35,7 @@ help(){
printf """
svc - Service Commander - frontend for the sv command
Usage: svc enable | unenable | enableed | list | up | start | restart | stop <service>
Usage: svc enable | disable | enabled | list | up | start | restart | stop <service>
For detailed help, see the commands below:
@ -45,7 +45,7 @@ start Start an enabled service
restart Restart a enabled service
stop Stop an enabled service
enable Symenlink directory/file to /var/service
unenable Remove symlink from /var/service
disable Remove symlink from /var/service
enabled View synlinked paths of all services
ls List enabled and unenabled service files
up Show status of running services
@ -59,7 +59,7 @@ case $1 in
ln -v -s /etc/sv/"${2}" /var/service/
;;
unenable | --remove-service )
disable | --remove-service )
rm -v /var/service/"${2}"
;;