diff options
author | Janne Heß | 2016-10-06 19:16:33 +0200 |
---|---|---|
committer | Janne Heß | 2016-10-06 19:35:15 +0200 |
commit | 94d7a50433d26d0127ee262a28ede3287e050afe (patch) | |
tree | e282057fd29d21320f6abde2ae5d040e3f457b00 /asciinema-unicorn.service | |
download | aur-asciinema-server-git.tar.gz |
Initial commit of the asciinema server
Diffstat (limited to 'asciinema-unicorn.service')
-rw-r--r-- | asciinema-unicorn.service | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/asciinema-unicorn.service b/asciinema-unicorn.service new file mode 100644 index 000000000000..30f376f923e4 --- /dev/null +++ b/asciinema-unicorn.service @@ -0,0 +1,32 @@ +[Unit] +Description=Asciinema Unicorn Server +Requires=redis.service +Wants=postgresql.service +After=redis.ervice postgresql.service network.target + +[Service] +ExecStartPre=/usr/bin/mkdir -p /run/asciinema/tmp +ExecStart=/usr/bin/bundle exec rails server --pid=/run/asciinema/unicorn.pid $UNICORN_OPTS + +WorkingDirectory=/usr/share/webapps/asciinema +Environment=RAILS_ENV=production +EnvironmentFile=-/etc/conf.d/asciinema + +Restart=on-failure +RestartSec=3 +PIDFile=/run/asciinema/unicorn.pid + +User=asciinema +Group=asciinema + +CapabilityBoundingSet= +NoNewPrivileges=true +ProtectDevices=true +ProtectSystem=full +PrivateTmp=true + +RuntimeDirectory=asciinema +RuntimeDirectoryMode=755 + +[Install] +WantedBy=multi-user.target |