Add sinatra.service (moved from /etc/systemd/system)
This commit is contained in:
1 parent
ec4c3f108d
commit
383628d2fa
1 file changed
+14
@@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Sinatra App
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=randy
|
||||||
|
Group=users
|
||||||
|
WorkingDirectory=/opt/sinatra
|
||||||
|
ExecStart=/home/randy/.rvm/bin/rvm ruby-4.0.5 do bundle exec ruby app.rb
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in new issue
Block a user