RHEL 8.8にはカスタマイズ/etc/systemd/system/custom.service
。
[Unit]
Description=custom
[Service]
Type=simple
ExecStart=/root/scripts/custom.sh
[Install]
WantedBy=default.target
私の/root/scripts/custom.sh
ものroot.root -rwx------
。
/var/log/messages
私はselinuxがスクリプトの実行を拒否するという声明を見ました。私の/root/scripts/custom.sh
スクリプトを私で実行するにはどうすればよいですかcustom.service
?