patching websocket_server.rb to provide a pidfile, important for SystemV init files. Ubuntu upstart configuration. Bugfixes
19 lines
455 B
Text
19 lines
455 B
Text
# Ubuntu upstart file at /etc/init/diaspora-wsd.conf
|
|
|
|
start on runlevel [5]
|
|
stop on runlevel [06]
|
|
|
|
export fork
|
|
|
|
script
|
|
if [ -f /etc/default/diaspora ]; then
|
|
. /etc/default/diaspora;
|
|
fi;
|
|
cd /usr/share/diaspora/master;
|
|
start-stop-daemon --start \
|
|
--chuid diaspora:diaspora \
|
|
--chdir $PWD \
|
|
--exec "/usr/local/bin/bundle" \
|
|
-- exec ruby -C $PWD script/websocket_server.rb;
|
|
|
|
end script
|