View: 5266|Reply: 2

OpenElec systemctl

[Copy link]

10

threads

55

posts

345

credits

Intermediate member

Rank: 3Rank: 3

credits
345
Published in 2017-5-27 00:37:05 | Show all floors |Read mode
Edited by campioncino at 2017-5-27 00:39

Hi, I created my own service and I need to create a symlink using
  1. systemctl enable fan-suspend.service
Copy code
But it's impossible. I got always this message :
Failed to execute operation: Invalid argument

I don't know how to solve.
I tried everythings :
  • systemctl daemon-reload
  • systemctl reset-failed
  • look for all the service files
    1. find | grep '\.service'
    Copy code

I got always the same message. Any help will be appreciate. That's driving me crazy!

In my folder /storage/.config/system.d/  there are only that files
total 34
-rw-r--r--    1 root     root         28816 Oct 15  2016 README
-rw-r--r--    1 root     root             0 May 26 17:03 autostart.sh
-rw-r--r--    1 root     root          1772 Oct 15  2016 cifs.mount.sample
-rw-r--r--    1 root     root           336 May 26 18:29 fan-suspend.service
-rw-r--r--    1 root     root          1729 Oct 15  2016 nfs.mount.sample

in /etc/systemd/
  1. <blockquote>total 6
Copy code
and finally in /usr/lib/systemd/system/ that's the results of
  1. find | grep "wants"
Copy code
OpenELEC:/usr/lib/systemd/system # find | grep "wants"
./basic.target.wants
./basic.target.wants/add-entropy.service
./basic.target.wants/hwdb.service
./basic.target.wants/show-version.service
./basic.target.wants/swap.service
./bluetooth.target.wants
./bluetooth.target.wants/bluetooth.service
./bluetooth.target.wants/obex.service
./busnames.target.wants
./busnames.target.wants/org.freedesktop.login1.busname
./busnames.target.wants/org.freedesktop.systemd1.busname
./dbus.target.wants
./dbus.target.wants/dbus.socket
./halt.target.wants
./halt.target.wants/add-random-at-shutdown.service
./halt.target.wants/kodi-halt.service
./kodi.service.wants
./kodi.service.wants/kodi-autostart.service
./kodi.service.wants/kodi-cleanlogs.service
./kodi.target.wants
./kodi.target.wants/kodi.service
./local-fs.target.wants
./local-fs.target.wants/systemd-remount-fs.service
./local-fs.target.wants/tmp.mount
./local-fs.target.wants/var-lib-machines.mount
./local-fs.target.wants/var.mount
./multi-user.target.wants
./multi-user.target.wants/avahi-daemon.service
./multi-user.target.wants/connman.service
./multi-user.target.wants/cron.service
./multi-user.target.wants/dbus.service
./multi-user.target.wants/eventlircd.service
./multi-user.target.wants/lcdd.service
./multi-user.target.wants/nmbd.service
./multi-user.target.wants/pulseaudio.service
./multi-user.target.wants/rpcbind.service
./multi-user.target.wants/smbd.service
./multi-user.target.wants/sshd.service
./multi-user.target.wants/systemd-ask-password-wall.path
./multi-user.target.wants/systemd-logind.service
./network-online.target.wants
./network-online.target.wants/kodi-waitonnetwork.service
./network.target.wants
./network.target.wants/brcmfmac_sdio-firmware.service
./network.target.wants/sunxi-bt-load.service
./poweroff.target.wants
./poweroff.target.wants/add-random-at-shutdown.service
./poweroff.target.wants/kodi-poweroff.service
./poweroff.target.wants/sunxi-poweroff.service
./reboot.target.wants
./reboot.target.wants/add-random-at-shutdown.service
./reboot.target.wants/kodi-reboot.service
./sleep.target.wants
./sleep.target.wants/kodi-lirc-suspend.service
./sleep.target.wants/sunxi-suspend.service
./sockets.target.wants
./sockets.target.wants/dbus.socket
./sockets.target.wants/systemd-initctl.socket
./sockets.target.wants/systemd-journald-audit.socket
./sockets.target.wants/systemd-journald-dev-log.socket
./sockets.target.wants/systemd-journald.socket
./sockets.target.wants/systemd-udevd-control.socket
./sockets.target.wants/systemd-udevd-kernel.socket
./sysinit.target.wants
./sysinit.target.wants/debug-shell.service
./sysinit.target.wants/debugconfig.service
./sysinit.target.wants/dev-hugepages.mount
./sysinit.target.wants/dev-mqueue.mount
./sysinit.target.wants/kmod-static-nodes.service
./sysinit.target.wants/machine-id.service
./sysinit.target.wants/serial-console.service
./sysinit.target.wants/sys-fs-fuse-connections.mount
./sysinit.target.wants/sys-kernel-config.mount
./sysinit.target.wants/sys-kernel-debug.mount
./sysinit.target.wants/systemd-ask-password-console.path
./sysinit.target.wants/systemd-hwdb-update.service
./sysinit.target.wants/systemd-journal-catalog-update.service
./sysinit.target.wants/systemd-journal-flush.service
./sysinit.target.wants/systemd-journald.service
./sysinit.target.wants/systemd-modules-load.service
./sysinit.target.wants/systemd-sysctl.service
./sysinit.target.wants/systemd-tmpfiles-setup-dev.service
./sysinit.target.wants/systemd-tmpfiles-setup.service
./sysinit.target.wants/systemd-udev-trigger.service
./sysinit.target.wants/systemd-udevd.service
./sysinit.target.wants/tz-data.service
./sysinit.target.wants/userconfig.service
./sysinit.target.wants/var-log-debug.service
./textmode.target.wants
./textmode.target.wants/shell.service
./timers.target.wants
./timers.target.wants/systemd-tmpfiles-clean.timer

10

threads

55

posts

345

credits

Intermediate member

Rank: 3Rank: 3

credits
345
 Author| Published in 2017-5-27 01:30:15 | Show all floors
I try also with
  1. systemctl reload-or-restart fan-suspend.service
Copy code
but doesn't work
and that's the status
● fan-suspend.service - fan loader
   Loaded: [[0;1;31merror[[0m (Reason: Invalid argument)
   Active: inactive (dead)

May 26 19:25:03 OpenELEC systemd[1]: [[0;1;31m[/storage/.config/system.d/fan-suspend.service:8] Unbalanced quoting, ignoring: "-/bin/sh -c "ec
ho 110 > /sys/class/gpio/export; echo "out" >"[[0m
May 26 19:25:03 OpenELEC systemd[1]: [[0;1;39m[/storage/.config/system.d/fan-suspend.service:9] Missing '='.[[0m
May 26 19:27:57 OpenELEC systemd[1]: [[0;1;31m[/storage/.config/system.d/fan-suspend.service:8] Unbalanced quoting, ignoring: "-/bin/sh -c "ec
ho 110 > /sys/class/gpio/export; echo "out" >"[[0m
May 26 19:27:57 OpenELEC systemd[1]: [[0;1;39m[/storage/.config/system.d/fan-suspend.service:9] Missing '='.[[0m
May 26 19:28:24 OpenELEC systemd[1]: [[0;1;31m[/storage/.config/system.d/fan-suspend.service:8] Unbalanced quoting, ignoring: "-/bin/sh -c "ec
ho 110 > /sys/class/gpio/export; echo "out" >"[[0m
May 26 19:28:24 OpenELEC systemd[1]: [[0;1;39m[/storage/.config/system.d/fan-suspend.service:9] Missing '='.[[0m

10

threads

55

posts

345

credits

Intermediate member

Rank: 3Rank: 3

credits
345
 Author| Published in 2017-5-27 01:45:54 | Show all floors
SOLVED ... error while copy/paste
now it works.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list