0

Is it possible to create a new systemd service that controls wifi? I have created this service and enabled with "systemctl enable vswm" but looks like not working on startup. Any tips?

[Unit]
Description=vswm service
ConditionPathExists=/usr/local/bin/vswm

[Service]
Type=simple
User=root
WorkingDirectory=/usr/local/bin
ExecStart=/usr/local/bin/vswm
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
  • What errors are you getting please post them from journalctl -xe | tail -20 – George Udosen Sep 25 '17 at 9:34
0

what about Type=oneshot?

If that doesn't work: maybe you have to change ownership of the file to root as well.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.