jcpunk / centos-git-common

Forked from centos-git-common 5 years ago
Clone

Blame mqtt/send-mqtt-to-dbus.service

0b0750
[Unit]
0b0750
Description=Bridge mqtt.git.centos.org to dbus
0b0750
After=network.target
0b0750
0b0750
[Service]
0b0750
Type=dbus
0b0750
BusName=org.centos.git.mqtt
0b0750
NoNewPrivileges=yes
0b0750
PrivateTmp=yes
0b0750
PrivateDevices=yes
0b0750
DevicePolicy=closed
0b0750
ProtectSystem=full
0b0750
ProtectHome=read-only
0b0750
Restart=on-failure
0b0750
RestartSec=5s
0b0750
0b0750
# NOTE: You should run this as the user (or edit the file)
0b0750
#  /usr/local/bin/send-mqtt-to-dbus.py --dbus-config > /etc/dbus-1/system.d/org.centos.git.mqtt.conf
0b0750
0b0750
#User=<TRUSTEDUSERNAME>
0b0750
Group=nobody
0b0750
ExecStart=/usr/local/bin/send-mqtt-to-dbus.py --dbus-use-system-bus --mqtt-server-ca=~/.centos/ca.pem --mqtt-client-cert=~/.centos/client.pem --mqtt-client-key=~/.centos/client.key
0b0750
0b0750
[Install]
0b0750
WantedBy=multi-user.target