Linux.systemd: Unterschied zwischen den Versionen

Aus OrgaMon Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 38: Zeile 38:


== Der cOrgaMon-Service ==
== Der cOrgaMon-Service ==
/etc/systemd/system/orgamon.service


  #
  #

Version vom 25. Januar 2012, 18:36 Uhr

"systemd" ist ein Linux Programm das den Boot-Prozess eines Linux-System durchführt. Zu startende Dienste sind von anderen abhängig so dass dieser Boot-Prozess nicht ganz einfach ist.


Anforderung

manuelle Start-Skript


  • cOrgaMon
  • VirtualBox (Headless)
  • aqb (Banking-Server)


Sicherstellen des Laufwerkes I:\

root-.wine-drive_i.mount
#
# cOrgaMon.service depends on
#  

[Unit]
Description=/root/.wine/drive_i
After=network.target

[Mount]
What=//raib91/i$
Where=/root/.wine/drive_i
Type=cifs
Options=-o guest

[Install]
WantedBy=orgamon.service 

Der cOrgaMon-Service

/etc/systemd/system/orgamon.service
#
# cOrgaMon XML RPC Server Start Up
#

[Unit]
Description=cOrgaMon.exe XML-RPC-Server under wine
Requires=root-.wine-drive_i.mount
After=root-.wine-drive_i.mount

[Service]
Environment=LANG=de_DE.UTF-8
ExecStart=/usr/bin/wine "C:\\Program Files\\OrgaMon\\cOrgaMon.exe"
User=root

#
# In case of a restart
#
Restart=always
RestartSec=25s

#
# Logs go to Syslog
#
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=cOrgaMon.exe

[Install]
WantedBy=multi-user.target

#