Added old armadietto and upnp services

This commit is contained in:
Antoine Lima 2021-12-21 21:47:15 +00:00
parent 28c79247c8
commit 99f8c8ce0d
2 changed files with 27 additions and 0 deletions

14
armadietto.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=remoteStorage server
After=local-fs.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=10
User=armadietto
ExecStart=/usr/local/bin/armadietto -c /usr/share/armadietto/config.json
[Install]
WantedBy=basic.target

13
upnp.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Upnp service
After=yunohost-firewall.service
[Service]
Type=oneshot
ExecStart=/usr/bin/yunohost firewall upnp enable
ExecStop=/usr/bin/yunohost firewall upnp disable
ExecReload=/usr/bin/yunohost firewall upnp reload
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target