summaryrefslogtreecommitdiffstats
path: root/honeypot.initd
blob: 4da4753e215e1d6ec3ac6f2347195f996466ae94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run
# Copyright 2012 Jason A. Donenfeld <Jason@zx2c4.com>

PID_FILE="/var/run/honeypot.pid"

depend() {
	need net
}

start() {
	ebegin "Starting honeypot"
	start-stop-daemon --start --exec /usr/bin/honeypot --pidfile $PID_FILE -- --daemonize --pid-file=$PID_FILE --honey-log=/var/log/honey.log --debug-log=/var/log/honeypot.log
	eend $?
}

stop() {
	ebegin "Stopping honeypot"
	start-stop-daemon --stop --exec /usr/bin/honeypot --pidfile $PID_FILE
	eend $?
}