aports/testing/gogs/gogs.initd
7heo 34793a33c9 testing/gogs: multiple fixes
List of fixes:
- Do not fail to add the user 'gogs' to the group 'www-data',
  explicitely creates it first.
- Explicitely pass the path to the .ini file to the gogs binary.
- Use openrc-run instead of runscript.
- Patch the list.tmpl template not to cause a fatal error when gogs
  starts.
2016-07-04 15:30:22 +02:00

16 lines
341 B
Plaintext

#!/sbin/openrc-run
name=gogs
conffile="$GOGS_CUSTOM/conf/app.ini"
command="/usr/bin/gogs"
command_args="web -c $conffile"
start_stop_daemon_args="${GOGS_USER:+--user} $GOGS_USER --env GOGS_CUSTOM=$GOGS_CUSTOM"
pidfile="/var/run/gogs.pid"
command_background="yes"
depend() {
use logger dns
need net
after firewall
}