Initial commit
This commit is contained in:
6
etc/systemd/system/hosting-del.service
Normal file
6
etc/systemd/system/hosting-del.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Delete old shared hosting accounts
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/php /home/daniel/hosting/find_old.php
|
12
etc/systemd/system/hosting-del.timer
Normal file
12
etc/systemd/system/hosting-del.timer
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Delete old shared hosting accounts
|
||||
|
||||
[Timer]
|
||||
# Time to wait after booting before we run first time
|
||||
OnBootSec=5min
|
||||
# Time between running each consecutive time
|
||||
OnUnitActiveSec=1h
|
||||
Unit=hosting-del.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
6
etc/systemd/system/hosting.service
Normal file
6
etc/systemd/system/hosting.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Manage shared hosting accounts
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/php /home/daniel/hosting/cron.php
|
13
etc/systemd/system/hosting.timer
Normal file
13
etc/systemd/system/hosting.timer
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Manage shared hosting accounts
|
||||
|
||||
[Timer]
|
||||
# Time to wait after booting before we run first time
|
||||
OnBootSec=5min
|
||||
# Time between running each consecutive time
|
||||
OnUnitActiveSec=1m
|
||||
Unit=hosting.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
3
etc/systemd/system/nginx.service.d/custom.conf
Normal file
3
etc/systemd/system/nginx.service.d/custom.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
LimitNOFILE=100000
|
||||
TimeoutStartSec=300
|
17
etc/systemd/system/php7.0-fpm.service
Normal file
17
etc/systemd/system/php7.0-fpm.service
Normal file
@ -0,0 +1,17 @@
|
||||
# This service is actually a systemd target,
|
||||
# but we are using a service since targets cannot be reloaded.
|
||||
|
||||
[Unit]
|
||||
Description=The PHP 7.0 FastCGI Process Manager (multi instance master)
|
||||
Documentation=man:php-fpm7.0(8)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/true
|
||||
ExecReload=/bin/true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
17
etc/systemd/system/php7.0-fpm@.service
Normal file
17
etc/systemd/system/php7.0-fpm@.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=The PHP 7.0 FastCGI Process Manager (instance %i)
|
||||
Documentation=man:php-fpm7.0(8)
|
||||
After=network.target
|
||||
PartOf=php7.0-fpm.service
|
||||
ReloadPropagatedFrom=php7.0-fpm.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
PIDFile=/run/php/php7.0-fpm-%i.pid
|
||||
ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm-%i.conf
|
||||
ExecReload=/bin/kill -USR2 $MAINPID
|
||||
LimitNOFILE=100000
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
17
etc/systemd/system/php7.0-fpm@default.service
Normal file
17
etc/systemd/system/php7.0-fpm@default.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=The PHP 7.0 FastCGI Process Manager
|
||||
Documentation=man:php-fpm7.0(8)
|
||||
After=network.target
|
||||
PartOf=php7.0-fpm.service
|
||||
ReloadPropagatedFrom=php7.0-fpm.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
PIDFile=/run/php/php7.0-fpm.pid
|
||||
ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm.conf
|
||||
ExecReload=/bin/kill -USR2 $MAINPID
|
||||
LimitNOFILE=100000
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
17
etc/systemd/system/php7.1-fpm.service
Normal file
17
etc/systemd/system/php7.1-fpm.service
Normal file
@ -0,0 +1,17 @@
|
||||
# This service is actually a systemd target,
|
||||
# but we are using a service since targets cannot be reloaded.
|
||||
|
||||
[Unit]
|
||||
Description=The PHP 7.1 FastCGI Process Manager (multi instance master)
|
||||
Documentation=man:php-fpm7.1(8)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/true
|
||||
ExecReload=/bin/true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
17
etc/systemd/system/php7.1-fpm@.service
Normal file
17
etc/systemd/system/php7.1-fpm@.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=The PHP 7.1 FastCGI Process Manager (instance %i)
|
||||
Documentation=man:php-fpm7.1(8)
|
||||
After=network.target
|
||||
PartOf=php7.1-fpm.service
|
||||
ReloadPropagatedFrom=php7.1-fpm.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
PIDFile=/run/php/php7.1-fpm-%i.pid
|
||||
ExecStart=/usr/sbin/php-fpm7.1 --nodaemonize --fpm-config /etc/php/7.1/fpm/php-fpm-%i.conf
|
||||
ExecReload=/bin/kill -USR2 $MAINPID
|
||||
LimitNOFILE=100000
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
17
etc/systemd/system/php7.1-fpm@default.service
Normal file
17
etc/systemd/system/php7.1-fpm@default.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=The PHP 7.1 FastCGI Process Manager
|
||||
Documentation=man:php-fpm7.1(8)
|
||||
After=network.target
|
||||
PartOf=php7.1-fpm.service
|
||||
ReloadPropagatedFrom=php7.1-fpm.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
PIDFile=/run/php/php7.1-fpm.pid
|
||||
ExecStart=/usr/sbin/php-fpm7.1 --nodaemonize --fpm-config /etc/php/7.1/fpm/php-fpm.conf
|
||||
ExecReload=/bin/kill -USR2 $MAINPID
|
||||
LimitNOFILE=100000
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
2
etc/systemd/system/tor@.service.d/custom.conf
Normal file
2
etc/systemd/system/tor@.service.d/custom.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
ReadWriteDirectories=-/var/log/tor-instances
|
Reference in New Issue
Block a user