summaryrefslogtreecommitdiff
path: root/net-im/mastoposter/files/mastoposter.initd
blob: 6e3621287e5a2c448cc8c4711402271224f4c0c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# shellcheck shell=sh

command="/usr/bin/mastoposter"
command_args="${MASTOPOSTER_CONFIG_FILE:=/etc/mastoposter/config.ini}"
command_user="mastoposter:mastoposter"
command_background=1
pidfile="/run/${RC_SVCNAME}.pid"
output_log="/var/log/${RC_SVCNAME}.log"
error_log="${output_log}"

depend() {
	need net
}

start_pre() {
	checkpath -fo "${command_user}" "${output_log}"
}