--- /etc/crontab --- # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh # You can also override PATH, but by default, newer versions inherit it from the environment #PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) # --- /etc/cron.d --- ## .placeholder perm=0644 w=0 # DO NOT EDIT OR REMOVE # This file is a simple placeholder to keep dpkg from removing this directory ## e2scrub_all perm=0644 w=0 30 3 * * 0 root test -e /run/systemd/system || SERVICE_MODE=1 /usr/lib/x86_64-linux-gnu/e2fsprogs/e2scrub_all_cron 10 3 * * * root test -e /run/systemd/system || SERVICE_MODE=1 /sbin/e2scrub_all -A -r ## staticroute perm=0644 w=0 SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin @reboot root ip route replace $(ip route list dev eth0 scope link | head -n1 | awk '{ print $1 }') via $(ip route list dev eth0 | awk '/default/{ print $3 }') dev eth0 &>/dev/null --- cron.hourly/daily --- /etc/cron.hourly .placeholder perm=0644 w=0 free perm=0755 w=0 fstrim perm=0755 w=0 /etc/cron.daily .placeholder perm=0644 w=0 apport perm=0755 w=0 apt-compat perm=0755 w=0 dpkg perm=0755 w=0 logrotate perm=0755 w=0 man-db perm=0755 w=0 quota perm=0755 w=0 --- systemd units touching /www --- ## /etc/systemd/system/BT-FirewallServices.service [Unit] Description=Firewall and System Event Listener Service After=network.target [Service] ExecStart=/www/server/panel/pyenv/bin/python3 /www/server/panel/script/BT-FirewallServices.py start ExecReload=/www/server/panel/pyenv/bin/python3 /www/server/panel/script/BT-FirewallServices.py reload ExecStop=/www/server/panel/pyenv/bin/python3 /www/server/panel/script/BT-FirewallServices.py stop User=root Type=simple [Install] WantedBy=multi-user.target ## /etc/systemd/system/dbus-org.freedesktop.resolve1.service # SPDX-License-Identifier: LGPL-2.1-or-later # # 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. [Unit] Description=Network Name Resolution Documentation=man:systemd-resolved.service(8) Documentation=man:org.freedesktop.resolve1(5) Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers Documentation=https:// ## /etc/systemd/system/site_total.service [Unit] Description=Site Total Service After=network.target [Service] Type=simple User=root Group=root WorkingDirectory=/www/server/site_total ExecStart=/www/server/site_total/site_total Restart=always RestartSec=5 LimitNOFILE=65535 [Install] WantedBy=multi-user.target ## /etc/systemd/system/syslog.service [Unit] Description=System Logging Service Requires=syslog.socket Documentation=man:rsyslogd(8) Documentation=man:rsyslog.conf(5) Documentation=https://www.rsyslog.com/doc/ [Service] Type=notify ExecStart=/usr/sbin/rsyslogd -n -iNONE StandardOutput=null Restart=on-failure # Increase the default a bit in order to allow many simultaneous # files to be monitored, we might need a lot of fds. LimitNOFILE=16384 [Install] WantedBy=multi-user.target Alias=syslog.service ## /etc/systemd/system/multi-user.target.wants/BT-FirewallServices.service [Unit] Description=Firewall and System Event Listener Service After=network.target [Service] ExecStart=/www/server/panel/pyenv/bin/python3 /www/server/panel/script/BT-FirewallServices.py start ExecReload=/www/server/panel/pyenv/bin/python3 /www/server/panel/script/BT-FirewallServices.py reload ExecStop=/www/server/panel/pyenv/bin/python3 /www/server/panel/script/BT-FirewallServices.py stop User=root Type=simple [Install] WantedBy=multi-user.target ## /etc/systemd/system/multi-user.target.wants/btpanel.service [Unit] Description=BT-Panel - simple and safe web control panel Documentation=https://www.bt.cn/new/btcode.html After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Service] Type=forking ExecStart=/etc/init.d/bt start ExecReload=/etc/init.d/bt reload ExecStop=/etc/init.d/bt stop [Install] WantedBy=multi-user.target ## /etc/systemd/system/multi-user.target.wants/rsyslog.service [Unit] Description=System Logging Service Requires=syslog.socket Documentation=man:rsyslogd(8) Documentation=man:rsyslog.conf(5) Documentation=https://www.rsyslog.com/doc/ [Service] Type=notify ExecStart=/usr/sbin/rsyslogd -n -iNONE StandardOutput=null Restart=on-failure # Increase the default a bit in order to allow many simultaneous # files to be monitored, we might need a lot of fds. LimitNOFILE=16384 [Install] WantedBy=multi-user.target Alias=syslog.service ## /etc/systemd/system/multi-user.target.wants/site_total.service [Unit] Description=Site Total Service After=network.target [Service] Type=simple User=root Group=root WorkingDirectory=/www/server/site_total ExecStart=/www/server/site_total/site_total Restart=always RestartSec=5 LimitNOFILE=65535 [Install] WantedBy=multi-user.target ## /etc/systemd/system/multi-user.target.wants/systemd-resolved.service # SPDX-License-Identifier: LGPL-2.1-or-later # # 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. [Unit] Description=Network Name Resolution Documentation=man:systemd-resolved.service(8) Documentation=man:org.freedesktop.resolve1(5) Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers Documentation=https:// DONE