1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00
This commit is contained in:
ericgaspar 2021-07-06 18:34:47 +02:00
parent acc30e0b00
commit c5c4f333c7
3 changed files with 12 additions and 10 deletions

View file

@ -1,18 +1,20 @@
[Unit] [Unit]
Description=AdGuardHome DNS Description=AdGuard Home: Network-level blocker
#ConditionFileIsExecutable=/etc/AdGuardHome/AduGuardHome ConditionFileIsExecutable=__FINALPATH__/AdGuardHome
After=syslog.target network-online.target
[Service] [Service]
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
StartLimitInterval=5 StartLimitInterval=5
StartLimitBurst=10 StartLimitBurst=10
ExecStart=__FINALPATH__/AdGuardHome "-s" "run" -c __FINALPATH__/AdGuardHome.yaml -p __PORT__
WorkingDirectory=__FINALPATH__ WorkingDirectory=__FINALPATH__
ExecStart=__FINALPATH__/AdGuardHome -c __FINALPATH__/AdGuardHome.yaml -p __PORT__ #StandardOutput=file:/var/log/__APP__.out
#StandardError=file:/var/log/__APP__.err
#Restart=always Restart=always
#RestartSec=120 RestartSec=10
#EnvironmentFile=-/etc/sysconfig/dnscrypt-proxy #EnvironmentFile=-/etc/sysconfig/AdGuardHome
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -3,4 +3,4 @@ SOURCE_SUM=a89332993c66a0f94886e243eb3141596c33cfe085c7ef7e30ead1885b40e086
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=false SOURCE_IN_SUBDIR=false
SOURCE_FILENAME= SOURCE_FILENAME=adguardhome

View file

@ -113,8 +113,8 @@ chown -R $app "$final_path/AdGuardHome.yaml"
ynh_script_progression --message="Configuring a systemd service..." --weight=1 ynh_script_progression --message="Configuring a systemd service..." --weight=1
# Create a dedicated systemd config # Create a dedicated systemd config
#ynh_add_systemd_config ynh_add_systemd_config
$final_path/AdGuardHome --service install -c $final_path/AdGuardHome.yaml -p $port #$final_path/AdGuardHome --service install -c $final_path/AdGuardHome.yaml -p $port
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION