dist: run as scylla on Ubuntu as well
Fixes #873 Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1454607403-28849-1-git-send-email-syuu@scylladb.com>
This commit is contained in:
parent
691f86983b
commit
af8ce2d2ea
2
dist/ubuntu/debian/scylla-jmx.init
vendored
2
dist/ubuntu/debian/scylla-jmx.init
vendored
@ -41,7 +41,7 @@ do_start()
|
|||||||
# 0 if daemon has been started
|
# 0 if daemon has been started
|
||||||
# 1 if daemon was already running
|
# 1 if daemon was already running
|
||||||
# other if daemon could not be started or a failure occured
|
# other if daemon could not be started or a failure occured
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $DAEMON
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --user scylla --exec $DAEMON
|
||||||
}
|
}
|
||||||
|
|
||||||
do_stop()
|
do_stop()
|
||||||
|
3
dist/ubuntu/debian/scylla-jmx.upstart
vendored
3
dist/ubuntu/debian/scylla-jmx.upstart
vendored
@ -11,6 +11,9 @@ umask 022
|
|||||||
|
|
||||||
console log
|
console log
|
||||||
|
|
||||||
|
setuid scylla
|
||||||
|
setgid scylla
|
||||||
|
|
||||||
script
|
script
|
||||||
. /etc/default/scylla-jmx
|
. /etc/default/scylla-jmx
|
||||||
export SCYLLA_HOME SCYLLA_CONF
|
export SCYLLA_HOME SCYLLA_CONF
|
||||||
|
Loading…
Reference in New Issue
Block a user