2020-07-06 14:57:59 +02:00
|
|
|
[Unit]
|
|
|
|
Description=OrientDB Server
|
|
|
|
After=network.target
|
|
|
|
After=syslog.target
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
[Service]
|
2021-06-04 15:28:58 +02:00
|
|
|
EnvironmentFile=/etc/default/orientdb
|
2020-07-06 14:57:59 +02:00
|
|
|
Type=simple
|
|
|
|
User={{ orientdb_user }}
|
|
|
|
Group={{ orientdb_user }}
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=orientdb
|
|
|
|
ExecStart={{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}/bin/server.sh
|
|
|
|
ExecStop={{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}/bin/shutdown.sh
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|