From af8ce2d2ea6417f08810deec727be2b2fb9b84f2 Mon Sep 17 00:00:00 2001 From: Takuya ASADA Date: Fri, 5 Feb 2016 02:36:43 +0900 Subject: [PATCH] dist: run as scylla on Ubuntu as well Fixes #873 Signed-off-by: Takuya ASADA Message-Id: <1454607403-28849-1-git-send-email-syuu@scylladb.com> --- dist/ubuntu/debian/scylla-jmx.init | 2 +- dist/ubuntu/debian/scylla-jmx.upstart | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/ubuntu/debian/scylla-jmx.init b/dist/ubuntu/debian/scylla-jmx.init index 733c01e..70d16e0 100644 --- a/dist/ubuntu/debian/scylla-jmx.init +++ b/dist/ubuntu/debian/scylla-jmx.init @@ -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() diff --git a/dist/ubuntu/debian/scylla-jmx.upstart b/dist/ubuntu/debian/scylla-jmx.upstart index 9097c31..f264c14 100644 --- a/dist/ubuntu/debian/scylla-jmx.upstart +++ b/dist/ubuntu/debian/scylla-jmx.upstart @@ -11,6 +11,9 @@ umask 022 console log +setuid scylla +setgid scylla + script . /etc/default/scylla-jmx export SCYLLA_HOME SCYLLA_CONF