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

View File

@ -0,0 +1,17 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.
[Time]
Servers=88.191.68.178 51.15.142.60 51.255.197.148 91.121.181.58
#NTP=
#FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org