1#!/sbin/openrc-run
2supervisor="supervise-daemon"
3
4name="reddit-nextcloud-importer"
5command="/usr/bin/reddit-nextcloud-importer"
6command_args=" -c ${client_id} -s ${client_secret} -u ${reddit_username} -p ${reddit_password} -P ${nextcloud_password} -U ${nextcloud_username} -o ${nextcloud_host}"
7command_background="yes"
8
9supervise_daemon_args="--user www-data:www-data"
10pidfile="/run/$RC_SVCNAME.pid"
11output_log="$logfile"
12error_log="$logfile"
13
14depend() {
15 use net
16}
17