mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
[enh] systemd.service
This commit is contained in:
parent
19a00c98d2
commit
fc1cb94e07
3 changed files with 7 additions and 20 deletions
|
@ -1,14 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Matrix Whatsapp bridge
|
|
||||||
After=matrix-synapse.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=__APP__
|
|
||||||
WorkingDirectory=/opt/yunohost/__APP__
|
|
||||||
ExecStart=/opt/yunohost/__APP__/mautrix-whatsapp -c=/opt/yunohost/__APP__/config.yaml >> /var/log/__APP__/__APP__.log 2>&1
|
|
||||||
Restart=always
|
|
||||||
RestartSec=3
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,13 +1,14 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Small description of the service
|
Description=Matrix Whatsapp bridge
|
||||||
After=network.target
|
After=matrix-synapse.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
WorkingDirectory=/opt/yunohost/__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
ExecStart=/opt/yunohost/__APP__/mautrix-whatsapp -c=/opt/yunohost/__APP__/config.yaml >> /var/log/__APP__/__APP__.log 2>&1
|
||||||
ExecStart=__FINALPATH__/script >> /var/log/__APP__/__APP__.log 2>&1
|
Restart=always
|
||||||
|
RestartSec=3
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -208,7 +208,7 @@ ynh_script_progression --message="Configuring a systemd service..." --time --wei
|
||||||
|
|
||||||
# Create systemd config for mautrix-whatsapp
|
# Create systemd config for mautrix-whatsapp
|
||||||
#cp ../conf/default_mautrix-whatsapp /etc/default/$app
|
#cp ../conf/default_mautrix-whatsapp /etc/default/$app
|
||||||
ynh_add_systemd_config --service=$app --template=mautrix-whatsapp.service
|
ynh_add_systemd_config --service=$app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
|
|
Loading…
Add table
Reference in a new issue