projects
/
projects.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
47e399427fade10337a61c833a6732f620fd484b
[projects.git]
/
sh
/
sysd2sysv
1
#!/bin/bash
2
set -e
3
4
if [ $# -ne 2 ]
5
then
6
echo "usage: sysd2sysv <command> <deamon>"
7
exit 1
8
fi
9
10
if [ $1 = "enable" ]
11
then
12
update-rc.d $2 defaults 100
13
elif [ $1 = "disable" ]
14
then
15
update-rc.d -f $2 remove
16
else
17
/etc/init.d/$2 $1
18
fi
19
20