Initial commit

This commit is contained in:
Daniel Winzen
2017-04-30 19:32:42 +02:00
commit e0b35fb943
222 changed files with 8816 additions and 0 deletions

View 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

View 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

View File

@ -0,0 +1,6 @@
[Unit]
Description=Manage shared hosting accounts
[Service]
Type=simple
ExecStart=/usr/bin/php /home/daniel/hosting/cron.php

View 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

View File

@ -0,0 +1,3 @@
[Service]
LimitNOFILE=100000
TimeoutStartSec=300

View 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

View 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

View 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

View 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

View 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

View 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

View File

@ -0,0 +1,2 @@
[Service]
ReadWriteDirectories=-/var/log/tor-instances