talas-group/04_INFRA_DEPLOIEMENT/Ansible/roles/sqlpage/templates/sqlpage@.service
senke 66471934af Initial commit: Talas Group project management & documentation
Knowledge base of ~80+ markdown files across 14 domains (00-13),
Logseq graph, hardware design files (KiCAD), infrastructure configs,
and talas-wiki static site.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 20:10:41 +02:00

35 lines
773 B
Desktop File

# systemd service template for sqlpage. The actual instances will
# be called "sqlpage@appname". The variable %i expands to "appname"
[Unit]
Description=sqlpage service for application %i
ConditionPathExists=/srv/%i/sqlpage/sqlpage.json
PartOf=sqlpage.service
Before=sqlpage.service
After=syslog.target network-online.target
Wants=syslog.target network-online.target
[Service]
Type=fork
{% if sqlpage_user is defined %}
User={{ sqlpage_user }}
Group={{ sqlpage_group | default(sqlpage_user) }}
{% endif %}
WorkingDirectory=/srv/%i
EnvironmentFile=-/srv/%i/env_vars
ExecStart=/srv/%i/sqlpage.bin
StandardOutput=journal
StandardError=journal
SyslogIdentifier=sqlpage
Restart=no
PrivateTmp=true
ProtectHome=true
ProtectSystem=full
[Install]
WantedBy=multi-user.target