summaryrefslogtreecommitdiff
path: root/app-admin/sagan/files/sagan.init-r1
blob: f0d556583c4399e1cc11c4bc0a17e971448f3adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

pidfile="/var/run/sagan/sagan.pid"
command="/usr/bin/sagan"
command_args="-D \"${SAGAN_OPTS}\" -u \"${SAGAN_USER}\""

depend() {
      use logger mysql postgresql
      need localmount
}

start_pre() {
    checkpath -d -o sagan /run/sagan
    checkpath -p -o sagan -m 0644 /run/sagan/sagan.fifo
}