-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebootfix.txt
executable file
·31 lines (28 loc) · 1.21 KB
/
rebootfix.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|******************************************************************************|
| Nightcrawler - Enfer (Feat. Celine) |
|******************************************************************************|
I don't think that spendig so many time to just fix @reboot is OK. So, theres
another way to make it work. Still, it won't works too sometimes. Idk what to
do, keep tring to figure it out.
1) $ cd /etc/systemd/system
2) $ sudo touch monitoringsh.service
3) $ sudo nano monitoringsh.service
4) Type next lines in our file:
*****************************************
* [Unit] *
* Description=monitoring.sh *
* *
* [Service] *
* Type=oneshot *
* ExecStart=/path/to/your/monitoring.sh *
* *
* [Install] *
* WantedBy=multi-user.target *
*****************************************
S&E
5) su -
6) chmod 664 monitoringsh.service
6) systemctl daemon-reload
7) systemctl enable monitoringsh.service
You should get "Created symlink from ..." message
8) systemctl start monitoringsh.service