1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 20:55:20 +03:00
aports/testing/ddclient/ddclient.initd
2021-01-25 15:23:36 +00:00

22 lines
584 B
Bash
Executable file

#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="DDClient"
pidfile="/run/ddclient/${RC_SVCNAME}.pid"
command="/usr/bin/ddclient"
command_args="-pid ${pidfile}"
command_group="ddclient"
command_user="ddclient"
depend() {
need net
use dns logger
}
start_pre() {
checkpath -f -m 0600 -o ${command_user}:${command_group} /etc/ddclient/ddclient.conf
checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient
checkpath -d -m 0700 -o ${command_user}:${command_group} /var/cache/ddclient
}