[root@centos ~]# vi /etc/systemd/system/mastodon-web.serviceソス@ソスソスソス@mastodon-webソスNソスソスソスXソスNソスソスソスvソスgソス成
[Unit]
Description=mastodon-web
After=network.target
[Service]
Type=simple
User=mastodon
WorkingDirectory=/home/mastodon/live
Environment="RAILS_ENV=production"
Environment="RAILS_SERVE_STATIC_FILES=true"
Environment="PORT=3000"
ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target
[root@centos ~]# vi /etc/systemd/system/mastodon-sidekiq.serviceソス@ソスソスソス@mastodon-sidekiqソスNソスソスソスXソスNソスソスソスvソスgソス成
[Unit]
Description=mastodon-sidekiq
After=network.target
[Service]
Type=simple
User=mastodon
WorkingDirectory=/home/mastodon/live
Environment="RAILS_ENV=production"
Environment="DB_POOL=5"
ExecStart=/home/mastodon/.rbenv/shims/bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target
[root@centos ~]# vi /etc/systemd/system/mastodon-streaming.serviceソス@ソスソスソス@mastodon-streamingソスNソスソスソスXソスNソスソスソスvソスgソス成
[Unit]
Description=mastodon-streaming
After=network.target
[Service]
Type=simple
User=mastodon
WorkingDirectory=/home/mastodon/live
Environment="NODE_ENV=production"
Environment="PORT=4000"
ExecStart=/usr/bin/npm run start
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target
[root@centos ~]# systemctl start mastodon-{web,sidekiq,streaming}ソス@ソスソスソス@mastodonソスNソスソス
[root@centos ~]# systemctl enable mastodon-{web,sidekiq,streaming}ソス@ソスソスソス@mastodonソスソスソスソスソスNソスソスソスン抵ソス
|
|