summaryrefslogtreecommitdiff
blob: 9384cca7ddb20f4e2c120dc7ad1e7d6c495ee075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/sbin/openrc-run
source /etc/conf.d/sks

command=/usr/bin/sks
command_args="db ${SKS_ARGS}"
command_background=1
description="SKS database thread"
name="SKS db"
pidfile="/var/run/sks-db.pid"
required_files="${SKS_DIR}/sksconf"
start_stop_daemon_args="--chdir ${SKS_DIR} --user sks"


depend()
{
	use net
}

start_pre()
{
    checkpath --owner sks:sks --directory \
        ${SKS_DIR} ${SKS_DIR}/KDB ${SKS_DIR}/PTree
    checkpath --owner sks:sks --file \
        ${SKS_DIR}/*.log ${SKS_DIR}/KDB/* ${SKS_DIR}/PTree/*
}