#!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during boot. # starting up workerman touch /var/lock/subsys/local nohup sh /data/wwwroot/www.anrenyiliao.com/startup.sh >/data/wwwroot/www.anrenyiliao.com/logs/workerman-startup-log.txt 2>&1
[Unit] Description=poweroff cust After=getty@tty1.service display-manager.service plymouth-start.service Before=systemd-poweroff.service systemd-reboot.service systemd-halt.service DefaultDependencies=no # This works because it is installed in the target and will be # executed before the target state is entered # Also consider kexec.target