Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
capistrano-sneakers
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
capistrano-sneakers
Commits
97c2a601
Unverified
Commit
97c2a601
authored
Jan 26, 2018
by
Andrew Babichev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mimicry monit tasks descriptions to capistrano-sidekiq
parent
56477b29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lib/capistrano/tasks/monit.rake
+7
-7
No files found.
lib/capistrano/tasks/monit.rake
View file @
97c2a601
...
...
@@ -9,7 +9,7 @@ end
namespace
:sneakers
do
namespace
:monit
do
desc
'
Add Sneakers to monit
'
desc
'
Config Sneakers monit-service
'
task
:config
do
on
roles
(
fetch
(
:sneakers_role
))
do
|
role
|
@role
=
role
...
...
@@ -22,35 +22,35 @@ namespace :sneakers do
end
end
desc
'
Enable Sneakers monit
'
desc
'
Monitor Sneakers monit-service
'
task
:monitor
do
on
roles
(
fetch
(
:sneakers_role
))
do
sudo_if_needed
"
#{
fetch
(
:sneakers_monit_bin
)
}
monitor
#{
sneakers_service_name
}
"
end
end
desc
'
Disable Sneakers monit
'
desc
'
Unmonitor Sneakers monit-service
'
task
:unmonitor
do
on
roles
(
fetch
(
:sneakers_role
))
do
sudo_if_needed
"
#{
fetch
(
:sneakers_monit_bin
)
}
unmonitor
#{
sneakers_service_name
}
"
end
end
desc
'Start Sneakers
through monit
'
desc
'Start Sneakers
monit-service
'
task
:start
do
on
roles
(
fetch
(
:sneakers_role
))
do
sudo_if_needed
"
#{
fetch
(
:sneakers_monit_bin
)
}
start
#{
sneakers_service_name
}
"
end
end
desc
'Stop Sneakers
through monit
'
desc
'Stop Sneakers
monit-service
'
task
:stop
do
on
roles
(
fetch
(
:sneakers_role
))
do
sudo_if_needed
"
#{
fetch
(
:sneakers_monit_bin
)
}
stop
#{
sneakers_service_name
}
"
sudo_if_needed
"
#{
fetch
(
:sneakers_monit_bin
)
}
stop
#{
sneakers_service_name
}
"
end
end
desc
'Restart Sneakers
through monit
'
desc
'Restart Sneakers
monit-service
'
task
:restart
do
on
roles
(
fetch
(
:sneakers_role
))
do
sudo_if_needed
"
#{
fetch
(
:sneakers_monit_bin
)
}
restart
#{
sneakers_service_name
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment