-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyservice
More file actions
26 lines (22 loc) · 714 Bytes
/
myservice
File metadata and controls
26 lines (22 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#
# LSB-style init script for a fictional "myservice" service.
# To install this, edit, name with the name of your service,
# make executable, and place in /etc/init.d.
# Startstop does not rely on any of these, but LSB
# specifies we should source this file.
if [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
fi
### BEGIN INIT INFO
# Provides: myservice
# Required-Start:
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: myservice daemon
### END INIT INFO
export PATH=/usr/bin:/bin
export CLASSPATH=/path/to/classes...
startstop -m -u nobody -l /var/log/$SERVICE.log $SERVICE "$1" \
/usr/bin/java -Xms100m -Xmx100m com.mycompany.Server