Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bash-init-server
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bash_public
bash-init-server
Commits
95320b47
Commit
95320b47
authored
Dec 22, 2019
by
白秀江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新init-mount-service.sh
parent
04507d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
init-mount-service.sh
init-mount-service.sh
+29
-0
No files found.
init-mount-service.sh
0 → 100644
View file @
95320b47
#!/bin/bash
#chkconfig:2345 80 05 --指定在哪几个级别执行,0一般指关机,6指的是重启,其他为正常启动。80为启动的优先级,05为关闭的优先级别
#description:simple example service
RETVAL
=
0
start
(){
#启动服务的入口函数
echo
"mount service is started..."
mount /dev/vdb1 /data
}
stop
(){
#关闭服务的入口函数
echo
"mount service is stoped..."
}
#使用case选择
case
$1
in
start
)
start
;;
stop
)
stop
;;
restart
)
stop
start
;;
*
)
echo
"error choice ! please input start or stop"
;;
esac
exit
$RETVA
\ No newline at end of file
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