User Tools

Site Tools


autorun

If you want to send us your comments, please do so. Thanks
More on comments


Autorun an application on system boot

In this explanation we use the infinoted (Gobby server) as example
We will let infinoted run as a daemon. To accomplish this a infinoted.service file is used

Unit configuration file

  • Log in as root in a terminal
  • Reload the systemd configuration and unit files: systemctl --system daemon-reload
  • Save the contents under “Contents of infinoted.service” below to /etc/systemd/system/infinoted.service
  • systemctl status infinoted.service
  • If infinoted is running stop it (CTRL-C in the terminal infinoted is started in)
  • Start the infinoted with systemctl start infinoted.service
  • systemctl status infinoted.service
  • Reboot the computer and check if infinoted is started with systemctl status infinoted.service

If you need to stop infinoted manually do systemctl stop infinoted.service

Contents of infinoted.service

[Unit]
Description=infinoted server for Gobby collaborative text editor 
After=multi-user.target
 
[Service]
Type=simple
ExecStart=/usr/bin/infinoted-0.7
 
[Install]
WantedBy=multi-user.target
Alias=infinoted.service

Issues

The server does not start at boot

ExecStart=/usr/bin/infinoted-0.7 --daemonize

does not solve the issue


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
autorun.txt · Last modified: 19-05-2020 16:01 by wim