/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"

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to