Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
f2d9bc4f
Commit
f2d9bc4f
authored
Oct 25, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed build errors, added init script
parent
c0418b39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
1 deletion
+59
-1
settingsd-altlinux.spec
.gear/settingsd-altlinux.spec
+5
-1
settingsd
init/settingsd
+54
-0
No files found.
.gear/settingsd-altlinux.spec
View file @
f2d9bc4f
Name: settingsd
Version: 0.1
Release: alt
1
Release: alt
2
Summary: Settingsd - extensible service to control the operating system
Group: System/Servers
License: GPL
...
...
@@ -44,6 +44,10 @@ Requires: lsb-release
%changelog
* Mon Oct 25 2010 Devaev Maxim <mdevaev@etersoft.ru> 0.1-alt2
- Fixed build errors
- Added startup init srcipt
* Mon Oct 25 2010 Devaev Maxim <mdevaev@etersoft.ru> 0.1-alt1
- Initial build
init/settingsd
0 → 100755
View file @
f2d9bc4f
#!/bin/sh
#
# Settingsd: Settingsd local server
#
# chkconfig: - 23 84
# description: Settingsd - extensible service to control the operating system
#
### BEGIN INIT INFO
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop Settingsd
# Description: Settingsd - extensible service to control the operating system
### END INIT INFO
.
/etc/init.d/functions
RETVAL
=
0
settingsd_status
()
{
settingsd-server.py
--status
&&
success
||
failure
;
echo
RETVAL
=
"
$?
"
}
settingsd_start
()
{
echo
-n
"Starting Settingsd server: "
settingsd-server.py
--status
&>/dev/null
&&
passed
&&
echo
&&
RETVAL
=
"0"
&&
return
settingsd-server.py
--bus-type
=
system
--daemon
&>/dev/null
RETVAL
=
"
$?
"
[
"
$RETVAL
"
-eq
"0"
]
&&
success
||
failure
;
echo
}
settingsd_stop
()
{
echo
-n
"Stopping Settingsd server: "
settingsd-server.py
--kill
&>/dev/null
RETVAL
=
"
$?
"
[
"
$RETVAL
"
-eq
"0"
]
&&
success
||
failure
;
echo
}
case
"
$1
"
in
start
)
settingsd_start
;;
stop
)
settingsd_stop
;;
status
)
settingsd_status
;;
restart
)
settingsd_stop
;
settingsd_start
;;
*
)
echo
$"Usage:
$0
{start|stop|status|restart}"
;;
esac
exit
$RETVAL
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