You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
535 B
29 lines
535 B
2 years ago
|
#!/sbin/openrc-run
|
||
|
|
||
|
name=$RC_SVCNAME
|
||
|
description="OpenNebula noVNC Server"
|
||
|
command="/usr/bin/novnc-server"
|
||
|
command_user="oneadmin:oneadmin"
|
||
|
supervisor="supervise-daemon"
|
||
|
|
||
|
depend() {
|
||
|
before opennebula-sunstone
|
||
|
after syslog networking netmount
|
||
|
}
|
||
|
|
||
|
start() {
|
||
|
ebegin "Starting $RC_SVCNAME"
|
||
|
start-stop-daemon \
|
||
|
--exec $command \
|
||
|
--user $command_user \
|
||
|
--start -- start
|
||
|
eend $?
|
||
|
}
|
||
|
|
||
|
stop() {
|
||
|
ebegin "Stopping $RC_SVCNAME"
|
||
|
$command stop
|
||
|
/bin/rm -f /var/lock/one/.novnc.lock
|
||
|
eend $?
|
||
|
}
|