-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathupstart-stardog.conf
25 lines (17 loc) · 1.09 KB
/
upstart-stardog.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Upstart script for Stardog
description "stardog"
author "Geir Ove Grønmo <grove...@bouvet.no>"
# When to start the service
start on runlevel [2345]
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
# Run as unprivileged user
setuid vagrant
setgid vagrant
chdir /home/vagrant
# Start
env STARDOG_HOME=/home/vagrant/stardog-data
#exec sudo -E /home/vagrant/stardog-2.1.3/bin/stardog-admin server start
exec java -Xmx2048m -Xms2048m -Xloggc:/tmp/stardog-gc.log -Dapple.awt.UIElement=true -Dfile.encoding=UTF-8 -Dstardog.install.location=/home/vagrant/stardog-2.1.3/bin/.. -XX:SoftRefLRUPolicyMSPerMB=1 -XX:+UseParallelOldGC -XX:+UseCompressedOops -server -classpath /home/vagrant/stardog-2.1.3/bin/../client/api/*:/home/vagrant/stardog-2.1.3/bin/../client/cli/*:/home/vagrant/stardog-2.1.3/bin/../client/http/*:/home/vagrant/stardog-2.1.3/bin/../client/snarl/*:/home/vagrant/stardog-2.1.3/bin/../server/dbms/*:/home/vagrant/stardog-2.1.3/bin/../server/http/*:/home/vagrant/stardog-2.1.3/bin/../server/snarl/* com.complexible.stardog.cli.admin.CLI server start