Skip to content

Commit 8e7c917

Browse files
committed
Manage Stringer With Systemd
1 parent d642b50 commit 8e7c917

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/VPS.md

+24
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,30 @@ add the lines
113113
PATH=/home/stringer/.rbenv/bin:/bin/:/usr/bin:/usr/local/bin/:/usr/local/sbin
114114
*/10 * * * * source $HOME/.bash_profile; cd $HOME/stringer/; bundle exec rake fetch_feeds;
115115

116+
Manage Stringer With Systemd
117+
============================
118+
119+
You may want to manage Stringer as a systemd service on distributions come with systemd.
120+
121+
As stringer user, export app service files with foreman:
122+
123+
cd ~/stringer
124+
mkdir systemd-services
125+
foreman export systemd systemd-services -a stringer -u stringer
126+
127+
Logout stringer user, install systemd services:
128+
129+
sudo cp -a ~stringer/stringer/systemd-services/* /etc/systemd/system
130+
131+
As stringer user, close existing Stringer instance:
132+
133+
exit # exit racksh and app
134+
135+
Start app as a systemd service and make app run at startup
136+
137+
sudo systemctl start stringer.target
138+
sudo systemctl enable stringer.target
139+
116140
Reverse Proxy With Nginx
117141
========================
118142

0 commit comments

Comments
 (0)