blob: 4b577ffacb1c4269089f4df5b3fb7140f32302dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need net redis
}
start() {
ebegin "Starting ntopng"
start-stop-daemon --start --exec /usr/bin/ntopng --pidfile /var/run/ntopng.pid --make-pidfile --background -e LUA_PATH='/usr/share/ntopng/scripts/lua/modules/?.lua' -- --user ntopng ${NTOPNG_OPTS}
eend $?
}
stop() {
ebegin "Stopping ntopng"
start-stop-daemon --stop --exec /usr/bin/ntopng --pidfile /var/run/ntopng.pid
eend $?
}
|