3 # partimaged This shell script starts partimage server
6 # description: This scripts starts partimage server \
7 # which allow to get partimage partition \
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 # [ -f /etc/sysconfig/partimaged ] && . /etc/sysconfig/partimaged
15 # See how we were called.
18 if [ ! -f /var/lock/subsys/partimaged ]; then
19 msg_starting partimaged
21 /usr/sbin/partimaged -D -p13000
24 if [ $RETVAL -eq 0 ]; then
25 touch /var/lock/subsys/partimaged
32 msg_Already_Running partimaged
37 if [ -f /var/lock/subsys/partimaged ]; then
38 msg_stopping partimaged
40 rm -f /var/lock/subsys/partimaged >/dev/null 2>&1
42 msg_Not_Running partimaged
57 echo $"Usage: $0 {start|stop|status|restart}"