<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.acrodus.uk/index.php?action=history&amp;feed=atom&amp;title=Create_systemd_service_on_Linux_machine</id>
	<title>Create systemd service on Linux machine - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.acrodus.uk/index.php?action=history&amp;feed=atom&amp;title=Create_systemd_service_on_Linux_machine"/>
	<link rel="alternate" type="text/html" href="http://wiki.acrodus.uk/index.php?title=Create_systemd_service_on_Linux_machine&amp;action=history"/>
	<updated>2026-04-04T02:48:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>http://wiki.acrodus.uk/index.php?title=Create_systemd_service_on_Linux_machine&amp;diff=51&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;This is a note on how to create a systemd service based on a c program. This was created after implementing the genisys echo detection program as a systemd service.  The first thing is to make a Unit file. An example is shown below.  [Unit] Description=Detect genisys echo. After=network.target [Install] WantedBy=multi-user.target [Service] Type=simple ExecStart=/home/alex/Programs/echo_detection/echo_detection WorkingDirectory=/ Restart=always RestartSec=5 StandardOut=sy...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.acrodus.uk/index.php?title=Create_systemd_service_on_Linux_machine&amp;diff=51&amp;oldid=prev"/>
		<updated>2024-10-06T21:34:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is a note on how to create a systemd service based on a c program. This was created after implementing the genisys echo detection program as a systemd service.  The first thing is to make a Unit file. An example is shown below.  [Unit] Description=Detect genisys echo. After=network.target [Install] WantedBy=multi-user.target [Service] Type=simple ExecStart=/home/alex/Programs/echo_detection/echo_detection WorkingDirectory=/ Restart=always RestartSec=5 StandardOut=sy...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a note on how to create a systemd service based on a c program. This was created after implementing the genisys echo detection program as a systemd service.&lt;br /&gt;
&lt;br /&gt;
The first thing is to make a Unit file. An example is shown below.&lt;br /&gt;
&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Detect genisys echo.&lt;br /&gt;
After=network.target&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
ExecStart=/home/alex/Programs/echo_detection/echo_detection&lt;br /&gt;
WorkingDirectory=/&lt;br /&gt;
Restart=always&lt;br /&gt;
RestartSec=5&lt;br /&gt;
StandardOut=syslog&lt;br /&gt;
StandardError=syslog&lt;br /&gt;
SyslogIdentifier=%n&lt;br /&gt;
&lt;br /&gt;
Note this will redirect stdout to syslog so just make sure everything is ok.&lt;br /&gt;
&lt;br /&gt;
Now put this file into /etc/systemd/system.&lt;br /&gt;
Run the command sudo systemctl daemon-reload.&lt;br /&gt;
Then enable and start the service.&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>