start onos service withoud sudo from a non root user
Hi,
I am trying to start/stop onos service from a non root user ubuntu 17.04.
i tried:
i tried creating testuser2/.config/systemd/user/onos.service
[Unit]
Description=Open Network Operating System
After=network-online.target
After=local-fs.target
[Service]
Type=forking
ExecStart=/etc/init.d/onos start
ExecStop=/etc/init.d/onos stop
Restart=always
[Install]
WantedBy=multi-user.target
and tried systemctl --user daemon-reload
it says::
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.656" (uid=1002 pid=19639 comm="start --system onos ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")
testuser1@user-ThinkCentre-M73:~$ systemctl --user daemon-reload
-bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory
|