diff --git a/conf/systemd.service b/conf/systemd.service deleted file mode 100644 index 76cdf64..0000000 --- a/conf/systemd.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Small description of the service -After=network.target - -[Service] -Type=simple -User=__APP__ -Group=__APP__ -WorkingDirectory=__FINALPATH__/ -ExecStart=__FINALPATH__/script >> /var/log/__APP__/__APP__.log 2>&1 - -[Install] -WantedBy=multi-user.target diff --git a/scripts/backup b/scripts/backup index eb59af8..ce7f7b1 100755 --- a/scripts/backup +++ b/scripts/backup @@ -61,9 +61,4 @@ ynh_backup "/etc/php5/fpm/conf.d/20-$app.ini" ynh_backup "/etc/logrotate.d/$app" -#================================================= -# BACKUP SYSTEMD -#================================================= - -#ynh_backup "/etc/systemd/system/$app.service" diff --git a/scripts/install b/scripts/install index a2da9bd..47961c3 100755 --- a/scripts/install +++ b/scripts/install @@ -123,13 +123,6 @@ cp ../conf/acl.auth.php $final_path/conf #ynh_store_file_checksum "$final_path/conf/local.php" #================================================= -#================================================= -# SETUP SYSTEMD -#================================================= - -# Create a dedicated systemd config -#ynh_add_systemd_config - #================================================= # GENERIC FINALIZATION #================================================= @@ -153,14 +146,6 @@ chmod 755 $final_path/lib/tpl/{dokuwiki,dokuwiki/images} # Use logrotate to manage application logfile(s) ynh_use_logrotate -#================================================= -# ADVERTISE SERVICE IN ADMIN PANEL -#================================================= - -#yunohost service add NAME_INIT.D --log "/var/log/FILE.log" -yunohost service add "$app" --log "/var/log/$app/$app.log" - -#================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/remove b/scripts/remove index 594a5aa..682dfea 100755 --- a/scripts/remove +++ b/scripts/remove @@ -21,21 +21,6 @@ final_path=$(ynh_app_setting_get $app final_path) #================================================= # STANDARD REMOVE #================================================= -# STOP AND REMOVE SERVICE -#================================================= - -# Remove the dedicated systemd config -#ynh_remove_systemd_config - -#================================================= -# REMOVE SERVICE FROM ADMIN PANEL -#================================================= - -if yunohost service status | grep -q $app -then - echo "Remove $app service" - yunohost service remove $app -fi #================================================= # REMOVE APP MAIN DIR diff --git a/scripts/restore b/scripts/restore index 16f1e97..63503cc 100755 --- a/scripts/restore +++ b/scripts/restore @@ -86,17 +86,6 @@ ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini" #================================================= # SPECIFIC RESTORATION #================================================= -# ADVERTISE SERVICE IN ADMIN PANEL -#================================================= - -yunohost service add $app --log "/var/log/$app/$app.log" - -#================================================= -# RESTORE SYSTEMD -#================================================= - -#ynh_restore_file "/etc/systemd/system/$app.service" -#systemctl enable $app.service #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index f779776..a485bf4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -177,12 +177,6 @@ ynh_store_file_checksum "$final_path/conf/local.php" # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append -#================================================= -# SETUP SYSTEMD -#================================================= - -# Create a dedicated systemd config -#ynh_add_systemd_config #================================================= # GENERIC FINALIZATION