ansible-role-orientdb/templates/orientdb.service.j2

22 lines
540 B
Plaintext
Raw Normal View History

[Unit]
Description=OrientDB Server
After=network.target
After=syslog.target
[Install]
WantedBy=multi-user.target
[Service]
EnvironmentFile=/etc/default/orientdb
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