22 lines
602 B
Plaintext
22 lines
602 B
Plaintext
|
[Unit]
|
||
|
Description=OrientDB Server
|
||
|
After=network.target
|
||
|
After=syslog.target
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|
||
|
[Service]
|
||
|
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
|
||
|
ExecStatus={{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}/bin/orientdb.sh status
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|