summaryrefslogtreecommitdiff
path: root/install/libreoffice.service
blob: 64cbbf00153834b268420d307f7b74be4c5e0f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=Control headless libreoffice instance
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/libreoffice --headless \
    --accept=socket,host=127.0.0.1,port=8101;urp; \
    --nodefault --nofirststartwizard --nolockcheck \
    --nologo --norestore --invisible \
    --pidfile=/var/run/libreoffice.pid
RestartSec=5
ExecStop=/usr/bin/pkill -F /var/run/libreoffice.pid
PIDFile=/var/run/libreoffice.pid

[Install]
WantedBy=multi-user.target