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
|
#!/bin/bash
|
||||||
|
|
||||||
# SC - Service Commander - frontend for the sv command
|
# SVC - SV Commander - frontend for the sv command
|
||||||
|
|
||||||
###############################################################################################
|
###############################################################################################
|
||||||
## Copyright (c) 2015, Justin Moore
|
## Copyright (c) 2015, Justin Moore
|
||||||
##
|
##
|
||||||
## Permission to use, copy, modify, and/or distribute this software
|
## Permission to use, copy, modify, and/or distribute this software
|
||||||
## for any purpose with or without fee is hereby granted,
|
## for any purpose with or without fee is hereby granted,
|
||||||
## provided that the above copyright notice and this permission notice appear in all copies.
|
## 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
|
## THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
## WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
## 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,
|
## 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,
|
## 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,
|
## 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.
|
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
##############################################################################################
|
##############################################################################################
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ case $1 in
|
|||||||
unlink | --remove-service )
|
unlink | --remove-service )
|
||||||
rm -v /var/service/$2
|
rm -v /var/service/$2
|
||||||
;;
|
;;
|
||||||
|
|
||||||
linked | --linked-services )
|
linked | --linked-services )
|
||||||
cd /etc/sv && find -xtype l -exec ls -l {} \;
|
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 "link : Creates a symlink from /etc/sv/<name> -> /var/service/<name>"
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
|
|
||||||
help-unlink )
|
help-unlink )
|
||||||
echo
|
echo
|
||||||
echo "unlink : Removes symlink from /etc/sv/<name> -> /var/service/<name>"
|
echo "unlink : Removes symlink from /etc/sv/<name> -> /var/service/<name>"
|
||||||
@ -166,4 +166,3 @@ case $1 in
|
|||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user