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:
Takuya ASADA 2016-02-05 02:36:43 +09:00 committed by Avi Kivity
parent 691f86983b
commit af8ce2d2ea
2 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,7 @@ do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 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()

View File

@ -11,6 +11,9 @@ umask 022
console log
setuid scylla
setgid scylla
script
. /etc/default/scylla-jmx
export SCYLLA_HOME SCYLLA_CONF