Create linux systemd service
Create the file
/etc/systemd/system/routes.service
File content:
[Unit]
Description=Routes
After=multi-user.target
[Service]
Type=idle
ExecStart=/etc/init.d/routes.sh
[Install]
WantedBy=multi-user.target
Now lets enable service:
systemctl enable routes.service
If your script have start/stop options, change the ExecStart:
ExecStart=/etc/init.d/routes.sh start
ExecStop=/etc/init.d/routes.sh stop
Apt error Could not get lock /var/lib/apt/lists/lock
sudo fuser -vik -TERM /var/lib/apt/lists/lock
Mais vistos
-
A few cmds to help with the DFS troubleshooting aspects, keep in mind all should be run from an elevated PowerShell Dfsdiag /TestDCs D...
-
Java Keytool Command These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. A...
-
Find Users Who Have Never Logged On Use the following PowerShell Command; Get-ADUser -Filter { LastLogonDate -notlike "*" -and En...