Systemd Service Not Found in Selinux System
If after having a correct systemd service and realoading the systemd daemon,
systemd tells you it can’t find the service, you might have to retag it!
1
| /sbin/restorecon -v /etc/systemd/system/defenselet-grading.*
|
1
2
3
| [root@rocky-8gb-nbg1-1 systemd]# /sbin/restorecon -v /etc/systemd/system/defenselet-grading.*
Relabeled /etc/systemd/system/defenselet-grading.service from unconfined_u:object_r:admin_home_t:s0 to unconfined_u:object_r:systemd_unit_file_t:s0
Relabeled /etc/systemd/system/defenselet-grading.timer from unconfined_u:object_r:admin_home_t:s0 to unconfined_u:object_r:systemd_unit_file_t:s0
|