- Bearbeitet
salve
ich möcht rechte in ein paar ordner in /sys/modules ändern, weil ich nachträglich optionen setzen will und sonst nicht bei allem darf.
der service schaut so aus:
ich möcht rechte in ein paar ordner in /sys/modules ändern, weil ich nachträglich optionen setzen will und sonst nicht bei allem darf.
der service schaut so aus:
[Unit]
Description=chmod /sys/module/i915/parameters
#Conflicts=shutdown.target
[Service]
Type=simple
ExecStart=/usr/bin/chmod ugo=640 -R /sys/module/i915/parameters/ ; /usr/bin/chmod ugo=640 -R /sys/module/iwlwifi/parameters/ ; /usr/bin/chmod ugo=640 -R /sys/module/snd_hda_intel/parameters/
[Install]
WantedBy=graphical.target
und die fehlermeldung so:
[tom@frija ~]$ sudoedit /etc/systemd/system/chmod.service
[tom@frija ~]$ sudo systemctl daemon-reload && sudo systemctl restart chmod.service
Failed to restart chmod.service: Unit chmod.service is not loaded properly: Invalid argument.
See system logs and 'systemctl status chmod.service' for details.
[tom@frija ~]$ sudo systemctl restart chmod.service
Failed to restart chmod.service: Unit chmod.service is not loaded properly: Invalid argument.
See system logs and 'systemctl status chmod.service' for details.
[tom@frija ~]$ sudo systemctl status chmod.service
● chmod.service - chmod /sys/module/i915/parameters
Loaded: error (Reason: Invalid argument)
Active: failed (Result: exit-code) since Fr 2017-05-26 18:24:22 CEST; 19min ago
Main PID: 1667 (code=exited, status=1/FAILURE)
Mai 26 18:33:44 frija systemd[1]: [/etc/systemd/system/chmod.service:7] Executable path is not absolute, ignoring: usr/bin/chmod 640 -R
Mai 26 18:33:44 frija systemd[1]: [/etc/systemd/system/chmod.service:8] Missing '='.
Mai 26 18:37:27 frija systemd[1]: [/etc/systemd/system/chmod.service:7] Executable path is not absolute, ignoring: usr/bin/chmod 640 -R
Mai 26 18:37:27 frija systemd[1]: [/etc/systemd/system/chmod.service:8] Missing '='.
Mai 26 18:38:18 frija systemd[1]: [/etc/systemd/system/chmod.service:7] Executable path is not absolute, ignoring: usr/bin/chmod ugo=640 -R
Mai 26 18:38:18 frija systemd[1]: [/etc/systemd/system/chmod.service:8] Missing '='.
Mai 26 18:39:41 frija systemd[1]: [/etc/systemd/system/chmod.service:7] Executable path is not absolute, ignoring: usr/bin/chmod ugo=640 -R
Mai 26 18:39:41 frija systemd[1]: [/etc/systemd/system/chmod.service:8] Missing '='.
Mai 26 18:42:47 frija systemd[1]: [/etc/systemd/system/chmod.service:7] Executable path is not absolute, ignoring: usr/bin/chmod ugo=640 -R
Mai 26 18:42:47 frija systemd[1]: [/etc/systemd/system/chmod.service:8] Missing '='.
was mach ich da falsch?