You are not logged in.
I am not new to Linux but I am new to systemd and Arch Linux.
I think I need to write a systemd unit in /etc/systemd/system/myprocsettings.service like this:
[Unit]
Description=Write my settings in /proc
Before=remote-fs-pre.target
After=local-fs.target
DefaultDependencies=no
[Service]
ExecStart=/bin/sh -c 'modprobe cifs && sleep 2 && echo 0x27 > /proc/fs/cifs/SecurityFlags'
Type=oneshot
[Install]
WantedBy=remote-fs-pre.target
and then enable it with systemctl enable myprocsettings.service.
Is this correct? Am I going to break anything? Do I need to systemctl load before enable?
Last edited by dfulger (2013-01-18 10:41:35)
Offline
Use tmpfiles: https://wiki.archlinux.org/index.php/Sy … rary_files
Offline
It works now. I have updated my initial post with the version of the file that finally worked.
Offline