forked from Monty/GemStone_daemontools_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootGemstone_start
executable file
·44 lines (36 loc) · 1.05 KB
/
bootGemstone_start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
if [ $UID -ne 0 ]; then
echo "You must be root to run this!"
exit
fi
### Warning!!! Don't use leading spaces rather than leading tabs in "Here Documents" ###
echo "`basename $0` links the GemStone/S startup files in /etc/init.d to appropriate"
echo "locations in /etc/rc<n>.d for a Ubuntu based GemStone appliance."
echo "You may want to change the destination names for your system".
echo "Shall I continue? (Y/N)"
read cont
case "$cont" in
y|Y|yes)
;;
*)
echo "Not continuing"
exit
;;
esac
for i in "/etc/rc0.d" "/etc/rc1.d" "/etc/rc6.d" ; do
cd $i
ln -s ../init.d/topaz K05topaz
ln -s ../init.d/statmon K07statmon
ln -s ../init.d/gemstone K10gemstone
ln -s ../init.d/netldi K20netldi
done
for i in " /etc/rc2.d" "/etc/rc3.d" "/etc/rc4.d" "/etc/rc5.d" ; do
cd $i
ln -s ../init.d/gemstone S95gemstone
ln -s ../init.d/netldi S96netldi
ln -s ../init.d/statmon S97statmon
ln -s ../init.d/topaz S98topaz
ln -s ../init.d/glass_ip_address S98glass_ip_address
done
# Success
exit 0