2023-12-09 02:56:13 +05:30
|
|
|
[Unit]
|
|
|
|
Description=mCaptcha: PoW CAPTCHA system
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
2023-12-12 23:52:43 +05:30
|
|
|
|
|
|
|
{% if cache_type == 'redis' %}
|
|
|
|
Wants=redis.service
|
|
|
|
After=redis.service
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if database_type == 'postgres' %}
|
2023-12-09 02:56:13 +05:30
|
|
|
Wants=postgresql.service
|
|
|
|
After=postgresql.service
|
2023-12-12 23:52:43 +05:30
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if database_type == 'mariadb' %}
|
|
|
|
Wants=mariadb.service
|
|
|
|
After=mariadb.service
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2023-12-09 02:56:13 +05:30
|
|
|
|
|
|
|
[Service]
|
|
|
|
RestartSec=2s
|
|
|
|
Type=simple
|
|
|
|
User=mcaptcha
|
|
|
|
Group=mcaptcha
|
|
|
|
WorkingDirectory=/home/mcaptcha/
|
|
|
|
ExecStart=/usr/local/bin/mcaptcha
|
|
|
|
Restart=always
|
|
|
|
Environment=USER=mcaptcha HOME=/home/mcaptcha
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|