Formated text files
This commit is contained in:
32
opennebula
32
opennebula
@@ -12,8 +12,8 @@ depend() {
|
|||||||
need mariadb
|
need mariadb
|
||||||
after syslog networking localmount netmount
|
after syslog networking localmount netmount
|
||||||
before opennebula-scheduler opennebula-hem opennebula-sunstone \
|
before opennebula-scheduler opennebula-hem opennebula-sunstone \
|
||||||
opennebula-flow opennebula-gate
|
opennebula-flow opennebula-gate
|
||||||
# opennebula-ssh-agent
|
# opennebula-ssh-agent
|
||||||
}
|
}
|
||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
@@ -25,24 +25,24 @@ start_pre() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $RC_SVCNAME"
|
ebegin "Starting $RC_SVCNAME"
|
||||||
start-stop-daemon --background \
|
start-stop-daemon --background \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--make-pidfile --pidfile $pidfile --user $command_user \
|
--make-pidfile --pidfile $pidfile --user $command_user \
|
||||||
--start -- $command_args
|
--start -- $command_args
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $RC_SVCNAME"
|
ebegin "Stopping $RC_SVCNAME"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
--retry TERM/10/KILL/10 \
|
--retry TERM/10/KILL/10 \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--pidfile $pidfile --user $command_user
|
--pidfile $pidfile --user $command_user
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_post() {
|
stop_post() {
|
||||||
/bin/rm -f /var/lock/one/one
|
/bin/rm -f /var/lock/one/one
|
||||||
/usr/share/one/follower_cleanup
|
/usr/share/one/follower_cleanup
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,18 +13,18 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $RC_SVCNAME"
|
ebegin "Starting $RC_SVCNAME"
|
||||||
start-stop-daemon --background \
|
start-stop-daemon --background \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--make-pidfile --pidfile $pidfile --user $command_user \
|
--make-pidfile --pidfile $pidfile --user $command_user \
|
||||||
--start
|
--start
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $RC_SVCNAME"
|
ebegin "Stopping $RC_SVCNAME"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--pidfile $pidfile --user $command_user
|
--pidfile $pidfile --user $command_user
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,18 +13,18 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $RC_SVCNAME"
|
ebegin "Starting $RC_SVCNAME"
|
||||||
start-stop-daemon --background \
|
start-stop-daemon --background \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--make-pidfile --pidfile $pidfile --user $command_user \
|
--make-pidfile --pidfile $pidfile --user $command_user \
|
||||||
--start
|
--start
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $RC_SVCNAME"
|
ebegin "Stopping $RC_SVCNAME"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--pidfile $pidfile --user $command_user
|
--pidfile $pidfile --user $command_user
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,18 +13,18 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $RC_SVCNAME"
|
ebegin "Starting $RC_SVCNAME"
|
||||||
start-stop-daemon --background \
|
start-stop-daemon --background \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--make-pidfile --pidfile $pidfile --user $command_user \
|
--make-pidfile --pidfile $pidfile --user $command_user \
|
||||||
--start
|
--start
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $RC_SVCNAME"
|
ebegin "Stopping $RC_SVCNAME"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--pidfile $pidfile --user $command_user
|
--pidfile $pidfile --user $command_user
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,17 +12,17 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $RC_SVCNAME"
|
ebegin "Starting $RC_SVCNAME"
|
||||||
start-stop-daemon \
|
start-stop-daemon \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--user $command_user \
|
--user $command_user \
|
||||||
--start -- start
|
--start -- start
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $RC_SVCNAME"
|
ebegin "Stopping $RC_SVCNAME"
|
||||||
$command stop
|
$command stop
|
||||||
/bin/rm -f /var/lock/one/.novnc.lock
|
/bin/rm -f /var/lock/one/.novnc.lock
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,18 +13,18 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $RC_SVCNAME"
|
ebegin "Starting $RC_SVCNAME"
|
||||||
start-stop-daemon --background \
|
start-stop-daemon --background \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--make-pidfile --pidfile $pidfile --user $command_user \
|
--make-pidfile --pidfile $pidfile --user $command_user \
|
||||||
--start
|
--start
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $RC_SVCNAME"
|
ebegin "Stopping $RC_SVCNAME"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--pidfile $pidfile --user $command_user
|
--pidfile $pidfile --user $command_user
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,24 +23,24 @@ start_pre() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $RC_SVCNAME"
|
ebegin "Starting $RC_SVCNAME"
|
||||||
start-stop-daemon --background \
|
start-stop-daemon --background \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--make-pidfile --pidfile $pidfile --user $command_user \
|
--make-pidfile --pidfile $pidfile --user $command_user \
|
||||||
--start -- $command_args
|
--start -- $command_args
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $RC_SVCNAME"
|
ebegin "Stopping $RC_SVCNAME"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
--retry TERM/10/KILL/10 \
|
--retry TERM/10/KILL/10 \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--pidfile $pidfile --user $command_user
|
--pidfile $pidfile --user $command_user
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_post() {
|
stop_post() {
|
||||||
/bin/rm -f /var/lock/one/one
|
/bin/rm -f /var/lock/one/one
|
||||||
/usr/share/one/follower_cleanup
|
/usr/share/one/follower_cleanup
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,18 +14,18 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $RC_SVCNAME"
|
ebegin "Starting $RC_SVCNAME"
|
||||||
start-stop-daemon --background \
|
start-stop-daemon --background \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--make-pidfile --pidfile $pidfile --user $command_user \
|
--make-pidfile --pidfile $pidfile --user $command_user \
|
||||||
--start
|
--start
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $RC_SVCNAME"
|
ebegin "Stopping $RC_SVCNAME"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
--exec $command \
|
--exec $command \
|
||||||
--pidfile $pidfile --user $command_user
|
--pidfile $pidfile --user $command_user
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user