aboutsummaryrefslogtreecommitdiffstats
path: root/community/sane/saned.initd
blob: 6482073ef48282d37750a81620a2d62d8a7a0926 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/sbin/openrc-run

description="SANE network scanner server"

owner=saned
pidfile=/run/saned/saned.pid
cfgfile=/etc/sane.d/saned.conf
command=/usr/sbin/saned
command_args="-a $owner"
required_files="$cfgfile"

start_pre() {
	checkpath -dm755 -o $owner ${pidfile%/*}
}