jerbil 1.2.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/etc/init.d/jserviced DELETED
@@ -1,59 +0,0 @@
1
- #!/sbin/runscript
2
- #
3
- # INIT Script for a Jerbil Service
4
-
5
- # create dependencies from the list of services in $NEEDS and $USES
6
- depend() {
7
- for need_service in $NEEDS
8
- do
9
- need $need_service
10
- done
11
- for use_service in $USES
12
- do
13
- use $use_service
14
- done
15
- }
16
-
17
- # make sure there are no unexpected rubylibs
18
- export RUBYLIB=""
19
- export RUBYOPT="rubygems"
20
-
21
- myopts=""
22
- [ -n "${NO_DAEMON}" ] && myopts="${myopts} -n"
23
- [ -n "${CONF_FILE}" ] && myopts="${myopts} -c ${CONF_FILE}"
24
- [ "${VERBOSE}" == "true" ] && [ "${QUIET}" != "true" ] && myopts="${myopts} -V"
25
- [ -n "${NO_SYSLOG}" ] && myopts="${myopts} -S"
26
- [ -n "${LOG_DAEMON}" ] && myopts="${myopts} -l"
27
- [ "$SERVICE_NAME" == "" ] && SERVICE_NAME="${SVCNAME}"
28
- [ "$SERVICE_USER" == "" ] && SERVICE_USER="jerbil"
29
-
30
- start() {
31
- ebegin "Starting Jerbil Service ${SERVICE_NAME}"
32
-
33
-
34
- # create the options for starting the daemon from the settings in the
35
- # /etc/conf.d/jservice file (same name as this link)
36
-
37
- /bin/su -c "/usr/sbin/jserviced ${myopts} -s ${SERVICE_NAME}" - ${SERVICE_USER}
38
-
39
- eend $?
40
- }
41
-
42
- status() {
43
- ebegin "Checking status for Jerbil Service ${SERVICE_NAME}"
44
- /usr/sbin/jservice-status ${myopts} -s ${SERVICE_NAME}
45
- eend $?
46
- }
47
-
48
-
49
- stop() {
50
- ebegin "Stopping Jerbil Service ${SERVICE_NAME}"
51
- /usr/sbin/jservice-stop ${myopts} -s ${SERVICE_NAME}
52
- eend $?
53
- }
54
-
55
- describe() {
56
- einfo ${DESCRIPTION}
57
-
58
- }
59
-