blob: 75e957e579cce45068cc665b1ef4681bd586274d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
start() {
start-stop-daemon --start --user freenet --chdir /var/freenet/ --background --stdout=/var/freenet/freenet.log --stderr=/var/freenet/freenet.log --make-pidfile --pidfile=/var/run/freenet.pid --name freenet --exec java -- -cp $classpath $additional_options $configurable_options $target
}
stop() {
start-stop-daemon --stop --user freenet --pidfile=/var/run/freenet.pid
}
|