1 | # SIP_client-upstart
|
---|
2 | # starts SIP_client on startup by using xinit.
|
---|
3 | # by default runs as dispatcher, to change edit below.
|
---|
4 | env USER=dispatcher
|
---|
5 |
|
---|
6 | description "SIP_client-upstart-script"
|
---|
7 | author "Alex Mogilnikov"
|
---|
8 |
|
---|
9 | start on (filesystem and stopped udevtrigger)
|
---|
10 | stop on runlevel [016]
|
---|
11 |
|
---|
12 | # tell upstart to respawn the process if abnormal exit
|
---|
13 | respawn
|
---|
14 | respawn limit 10 5
|
---|
15 | limit nice 21 21
|
---|
16 |
|
---|
17 | script
|
---|
18 | exec su -c "xinit /usr/bin/java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -jar /usr/local/share/SIP_client/SIP_client.jar -- /usr/bin/X -s 0 -bs -nolisten tcp :0" $USER
|
---|
19 | end script
|
---|