| 1 | [Unit] |
| 2 | Description=Autodir Group service |
| 3 | PartOf=autodir.service |
| 4 | After=autodir.service |
| 5 | |
| 6 | [Service] |
| 7 | Type=forking |
| 8 | Environment=AUTOGROUP_HOME=/group AUTOGROUP_TIMEOUT=300 |
| 9 | Environment=AUTOGROUP_MODULE=/usr/lib/autodir/autogroup.so |
| 10 | Environment="AUTOGROUP_OPTIONS=realpath=/autogroup,level=2" |
| 11 | Environment=AUTOGROUP_BACKUP=/bin/true |
| 12 | Environment=AUTOGROUP_BACKWAIT=600 |
| 13 | Environment=AUTOGROUP_BACKPRI=30 |
| 14 | Environment=AUTOGROUP_MAXBACK=150 |
| 15 | EnvironmentFile=-/etc/default/autodir |
| 16 | PIDFile=/run/autogroup.pid |
| 17 | ExecReload=kill -HUP $MAINPID |
| 18 | ExecCondition=grep -E -qe '^RUN_AUTOGROUP="yes"' /etc/default/autodir |
| 19 | ExecStop=kill -TERM $MAINPID |
| 20 | ExecStart=/usr/sbin/autodir \ |
| 21 | -d $AUTOGROUP_HOME -m $AUTOGROUP_MODULE \ |
| 22 | -o $AUTOGROUP_OPTIONS \ |
| 23 | -t $AUTOGROUP_TIMEOUT \ |
| 24 | -b $AUTOGROUP_BACKUP \ |
| 25 | -w $AUTOGROUP_BACKWAIT \ |
| 26 | -p $AUTOGROUP_BACKPRI \ |
| 27 | -c $AUTOGROUP_MAXBACK \ |
| 28 | -l /run/autogroup.pid |
| 29 | TimeoutStartSec=30 |
| 30 | TimeoutStopSec=30 |
| 31 | KillMode=control-group |
| 32 | KillSignal=SIGTERM |
| 33 | FinalKillSignal=SIGKILL |
| 34 | |
| 35 | [Install] |
| 36 | WantedBy=autodir.service |