systemd files from apk7-ubuntu
This commit is contained in:
18
systemd/dropbox-renato.service
Normal file
18
systemd/dropbox-renato.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Dropbox Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c '/usr/bin/dropbox start'
|
||||
ExecStop=/bin/sh -c '/usr/bin/dropbox stop'
|
||||
PIDFile=/home/renato/.dropbox/dropbox.pid
|
||||
User=renato
|
||||
Group=renato
|
||||
Type=forking
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
StartLimitInterval=60s
|
||||
StartLimitBurst=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
13
systemd/dropbox@.service
Normal file
13
systemd/dropbox@.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Dropbox Daemon
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=%i
|
||||
ExecStart=/usr/bin/dropbox
|
||||
ExecStop=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
11
systemd/grive-changes@.service
Normal file
11
systemd/grive-changes@.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Google drive sync (changed files)
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/lib/grive/grive-sync.sh listen "%i"
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
6
systemd/grive-timer@.service
Normal file
6
systemd/grive-timer@.service
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Google drive sync
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/lib/grive/grive-sync.sh sync "%i"
|
||||
11
systemd/grive-timer@.timer
Normal file
11
systemd/grive-timer@.timer
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Google drive sync (fixed intervals)
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/5
|
||||
OnBootSec=3min
|
||||
OnUnitActiveSec=5min
|
||||
Unit=grive-timer@%i.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
19
systemd/mattermost.service
Normal file
19
systemd/mattermost.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Mattermost
|
||||
After=network.target
|
||||
After=mysql.service
|
||||
Requires=mysql.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/opt/mattermost/bin/mattermost
|
||||
TimeoutStartSec=3600
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
WorkingDirectory=/opt/mattermost
|
||||
User=mattermost
|
||||
Group=mattermost
|
||||
LimitNOFILE=49152
|
||||
|
||||
[Install]
|
||||
WantedBy=mysql.service
|
||||
15
systemd/pandoc-as-a-service.service
Normal file
15
systemd/pandoc-as-a-service.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=pandoc-as-a-service - If you need to convert text from one markup format into another, pandoc-as-a-service is your swiss-army knife.
|
||||
Documentation=https://github.com/mrded/pandoc-as-a-service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment="PORT=3001" "PATH=/home/renato/.cabal/bin:/home/renato/.local/bin:/home/renato/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:/usr/sbin:/usr/bin:/sbin:/bin:"
|
||||
Type=simple
|
||||
User=renato
|
||||
WorkingDirectory=/home/renato/WebApp/pandoc-as-a-service/
|
||||
ExecStart=/usr/bin/node index.js $PORT
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
13
systemd/phabricator-aphlict.service
Normal file
13
systemd/phabricator-aphlict.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Phabricator Aphlict
|
||||
After=syslog.target network.target mysql.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=phabricator
|
||||
Group=phabricator
|
||||
ExecStart=/var/www/phabricator/phabricator/bin/aphlict start
|
||||
ExecStop=/var/www/phabricator/phabricator/bin/aphlict stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
13
systemd/phabricator-phd.service
Normal file
13
systemd/phabricator-phd.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Phabricator Daemons
|
||||
After=syslog.target network.target mysql.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=phabricator
|
||||
Group=phabricator
|
||||
ExecStart=/var/www/phabricator/phabricator/bin/phd start
|
||||
ExecStop=/var/www/phabricator/phabricator/bin/phd stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
15
systemd/vncserver@.service
Normal file
15
systemd/vncserver@.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Start TightVNC server at startup
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=renato
|
||||
PAMName=login
|
||||
PIDFile=/home/renato/.vnc/%H:%i.pid
|
||||
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
|
||||
ExecStart=/usr/bin/vncserver -depth 24 -localhost=no -geometry 800x600 :%i
|
||||
ExecStop=/usr/bin/vncserver -kill :%i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user