Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for running python script as a systemd service

Current License: CC BY-SA 4.0

20 events
when toggle format what by license comment
Apr 27, 2022 at 19:13 history edited Benyamin Jafari
edited tags; edited tags
Jan 16, 2020 at 11:59 answer added Kilian timeline score: 2
Jul 12, 2018 at 19:38 review Close votes
Jul 16, 2018 at 0:02
S Jul 10, 2018 at 10:22 history edited panchicore
edited tags
Jul 10, 2018 at 9:19 review Suggested edits
S Jul 10, 2018 at 10:22
Jul 9, 2018 at 10:48 comment added Benyamin Jafari @pala9323 I wrote an answer that works.
Jul 9, 2018 at 10:23 comment added Nils Werner Have you checked the output of your service using sudo journalctl -u myscript?
Jul 9, 2018 at 10:04 answer added Benyamin Jafari timeline score: 0
S Jul 9, 2018 at 9:48 history suggested taras CC BY-SA 4.0
code format
Jul 9, 2018 at 8:36 review Suggested edits
S Jul 9, 2018 at 9:48
Oct 18, 2017 at 19:47 comment added Fran Fitzpatrick When the service runs, as what user is it running as? Does that user have access to the folder you're trying to write a folder to?
Mar 12, 2017 at 18:28 comment added nir0s Did you at all run sudo system systemctl start after creating the service file?
Mar 11, 2017 at 19:15 comment added pala9323 I had written "sudo systemctl daemon-reload" but it hadn't worked. After I reload the computer, services worked and created the file.Thanks for everything.
Mar 11, 2017 at 19:12 history undeleted pala9323
Mar 11, 2017 at 19:12 history deleted pala9323 via Vote
Mar 11, 2017 at 19:03 comment added pala9323 Service works there is no any problem as you see above, but my script has to create and write file.txt every 2 seconds. The problem is: file isnt created by the service
Mar 11, 2017 at 18:59 comment added pala9323 output is: systemctl status myscript.service くろまる myscript.service - My Script Service Loaded: loaded (/lib/systemd/system/myscript.service; disabled; vendor preset: enabled) Active: active (running) since Cts 2017年03月11日 21:54:59 +03; 2min 7s ago Main PID: 16614 (python) CGroup: /system.slice/myscript.service └─16614 /usr/bin/python /home/pala/PycharmProjects/myScript.py Mar 11 21:54:59 palaPC systemd[1]: Started My Script Service.
Mar 11, 2017 at 14:12 comment added nir0s Can you post the output of sudo systemctl status myservice? I tried this and it worked flawlessly using my home dir. Did you run sudo systemctl daemon-reload after adding the service file to /lib/systemd/system? Also, what makes you think the service works?
S Mar 11, 2017 at 13:44 review Triage
Mar 11, 2017 at 19:21
S Mar 11, 2017 at 13:44 history asked pala9323 CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /