blob: dbb5261f918bfdc81a604cb47c1c5d34d5afc75b (
plain)
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
|
#!/bin/sh
#
# This runs the rpc.cmsd background process needed by CDE.
#
# To enable this service automatically at boot, make this file
# executable: chmod 755 /etc/rc.d/rc.cmsd
#
cmsd_start() {
/usr/dt/bin/rpc.cmsd &
}
cmsd_stop() {
killall rpc.cmsd
}
cmsd_restart() {
cmsd_stop
sleep 2
cmsd_start
}
case "$1" in
'start')
cmsd_start
;;
'stop')
cmsd_stop
;;
'restart')
cmsd_restart
;;
*)
# Default is "start", for backwards compatibility with previous
# Slackware versions. This may change to a 'usage' error someday.
cmsd_start
esac
|