Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:general_information:tutorial:autostart [2018/11/13 12:00] liedmannen:general_information:tutorial:autostart [2019/02/22 12:15] – fixed path liedmann
Line 4: Line 4:
  
  
-1. Create file lib/systemd/system/demo.service with following content :+1. Create file **/lib/systemd/system/demo.service** with following content :
 <code> <code>
 [Unit] [Unit]
Line 19: Line 19:
 WantedBy=multi-user.target.wants WantedBy=multi-user.target.wants
 </code> </code>
-2. Create file /lib/systemd/systemd-demo with following content :+2. Create file **/lib/systemd/systemd-demo** with following content :
 <code> <code>
 #!/bin/sh #!/bin/sh
Line 38: Line 38:
 </code> </code>
 3. make system-demo executable.\\    3. make system-demo executable.\\   
-4. create symlink demo.service in /etc/system/system/multi-user.target.wants that points to the file /lib/systemd/system/demo.service :+4. create symlink demo.service in **/etc/system/system/multi-user.target.wants** that points to the file **/lib/systemd/system/demo.service** :
 <code> <code>
 cd /etc/systemd/system/multi-user.target.wants/ cd /etc/systemd/system/multi-user.target.wants/
  • Last modified: 2022/08/04 15:02