Changes in structure
This commit is contained in:
28
opennebula/opennebula-novnc
Normal file
28
opennebula/opennebula-novnc
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name=$RC_SVCNAME
|
||||
description="OpenNebula noVNC Server"
|
||||
command="/usr/bin/novnc-server"
|
||||
command_user="oneadmin:cloud"
|
||||
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 $?
|
||||
}
|
||||
Reference in New Issue
Block a user