Paul Belanger a45ee742a0
Add support for systemd init scripts
This is needed to support ubuntu xenial.

Change-Id: If30bff94ee0136fbadee7ce994b25842a1cc4270
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-12-13 14:21:21 -05:00

15 lines
334 B
Plaintext

[Unit]
Description=<%= @name %> Meetbot Server
After=network.target
[Service]
Type=simple
Environment=PYTHONPATH=/var/lib/meetbot/<%= @name %>
Group=meetbot
User=meetbot
WorkingDirectory=/var/lib/meetbot/<%= @name %>
ExecStart=/usr/bin/python /usr/bin/supybot /var/lib/meetbot/<%= @name %>.conf
[Install]
WantedBy=multi-user.target