[DRE-maint] Bug#887085: added diaspora-unicorn.service

Pirate Praveen praveen at onenetbeyond.org
Wed Sep 9 18:17:17 BST 2020


/etc/systemd/system/diaspora-unicorn.service

[Unit]
Description=Diaspora Unicorn Server
PartOf=diaspora.target
Requires=redis-server.service
Wants=postgresql.service
After=redis-server.service postgresql.service
PartOf=diaspora.service
ReloadPropagatedFrom=diaspora.service

[Service]
Type=simple
User=diaspora
WorkingDirectory=/usr/share/diaspora
EnvironmentFile=/etc/diaspora/diaspora.conf
SyslogIdentifier=diaspora-unicorn
ExecStart=/usr/bin/bundle exec unicorn_rails -c config/unicorn.rb -E
$RAILS_ENV
ExecReload=/bin/kill -USR2 $MAINPID
Restart=on-abnormal

[Install]
WantedBy=diaspora.target

/etc/diaspora/diaspora.conf (remove export from /etc/diaspora.conf)

RAILS_ENV=production
DB=postgres
BUNDLE_WITH=postgresql
DB_NAME=diaspora_production
SERVERNAME="diaspora-buster.lxc"
ENVIRONMENT_URL="http://diaspora-buster.lxc"
ENVIRONMENT_REQUIRE_SSL="false"
diaspora_letsencrypt="false"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20200909/39b398b6/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list