Sample arclinux startup script
authorAlex Kirhenshtein <alk@netxms.org>
Mon, 29 Apr 2013 22:46:52 +0000 (22:46 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Mon, 29 Apr 2013 22:46:52 +0000 (22:46 +0000)
.gitattributes
contrib/startup/archlinux/nxagentd.service [new file with mode: 0644]

index 069b2be..919e919 100644 (file)
@@ -330,6 +330,7 @@ contrib/mibs/WS-SW-MOBILITY-MIB.txt -text svneol=native#unset
 contrib/mibs/WS-SW-PORTVLAN-MIB.txt -text svneol=native#unset
 contrib/mibs/WS-SW-SMI.txt -text svneol=native#unset
 contrib/mibs/WS-TYPE-MIB.txt -text svneol=native#unset
+contrib/startup/archlinux/nxagentd.service -text
 contrib/startup/debian/Makefile.am -text
 contrib/startup/debian/netxmsd.in -text
 contrib/startup/debian/nxagentd.in -text
diff --git a/contrib/startup/archlinux/nxagentd.service b/contrib/startup/archlinux/nxagentd.service
new file mode 100644 (file)
index 0000000..9da0b1e
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=NetXMS Agent
+
+[Service]
+Type=forking
+ExecStart=/opt/netxms/bin/nxagentd -c /opt/netxms/etc/nxagentd.conf -d
+PIDFile=/var/run/nxagentd.pid
+
+[Install]
+WantedBy=multi-user.target