Updated Script: svc.sh - Renamed in header to svc
This commit is contained in:
parent
8c6b2bed52
commit
a0affb8860
21
svc.sh
21
svc.sh
@ -1,19 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SC - Service Commander - frontend for the sv command
|
||||
# SVC - SV Commander - frontend for the sv command
|
||||
|
||||
###############################################################################################
|
||||
## Copyright (c) 2015, Justin Moore
|
||||
##
|
||||
## Permission to use, copy, modify, and/or distribute this software
|
||||
## for any purpose with or without fee is hereby granted,
|
||||
## Permission to use, copy, modify, and/or distribute this software
|
||||
## for any purpose with or without fee is hereby granted,
|
||||
## provided that the above copyright notice and this permission notice appear in all copies.
|
||||
##
|
||||
## THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
## WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
## AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
|
||||
## OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
## WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
## THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
## WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
## AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
|
||||
## OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
## WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
##############################################################################################
|
||||
|
||||
@ -26,7 +26,7 @@ case $1 in
|
||||
unlink | --remove-service )
|
||||
rm -v /var/service/$2
|
||||
;;
|
||||
|
||||
|
||||
linked | --linked-services )
|
||||
cd /etc/sv && find -xtype l -exec ls -l {} \;
|
||||
;;
|
||||
@ -88,7 +88,7 @@ case $1 in
|
||||
echo "link : Creates a symlink from /etc/sv/<name> -> /var/service/<name>"
|
||||
echo
|
||||
;;
|
||||
|
||||
|
||||
help-unlink )
|
||||
echo
|
||||
echo "unlink : Removes symlink from /etc/sv/<name> -> /var/service/<name>"
|
||||
@ -166,4 +166,3 @@ case $1 in
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user