Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
pve-manager
Commits
3c9f7ac9
Commit
3c9f7ac9
authored
Mar 02, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid shell scripts in service definitions
parent
2d2c2994
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
13 deletions
+23
-13
pvedaemon.service
bin/init.d/pvedaemon.service
+3
-2
pveproxy.service
bin/init.d/pveproxy.service
+3
-2
pvestatd.service
bin/init.d/pvestatd.service
+3
-2
spiceproxy.service
bin/init.d/spiceproxy.service
+3
-2
pveproxy
bin/pveproxy
+6
-0
postinst
debian/postinst
+5
-5
No files found.
bin/init.d/pvedaemon.service
View file @
3c9f7ac9
...
...
@@ -5,8 +5,9 @@ Requires=pve-cluster.service
After=pve-cluster.service
[Service]
ExecStart=/etc/init.d/pvedaemon start
ExecStop=/etc/init.d/pvedaemon stop
ExecStart=/usr/bin/pvedaemon start
ExecStop=/usr/bin/pvedaemon stop
ExecReload=/usr/bin/pvedaemon restart
Type=forking
[Install]
...
...
bin/init.d/pveproxy.service
View file @
3c9f7ac9
...
...
@@ -7,8 +7,9 @@ After=pve-cluster.service
After=pvedaemon.service
[Service]
ExecStart=/etc/init.d/pveproxy start
ExecStop=/etc/init.d/pveproxy stop
ExecStart=/usr/bin/pveproxy start
ExecStop=/usr/bin/pveproxy stop
ExecReload=/usr/bin/pveproxy restart
Type=forking
[Install]
...
...
bin/init.d/pvestatd.service
View file @
3c9f7ac9
...
...
@@ -5,8 +5,9 @@ Requires=pve-cluster.service
After=pve-cluster.service
[Service]
ExecStart=/etc/init.d/pvestatd start
ExecStop=/etc/init.d/pvestatd stop
ExecStart=/usr/bin/pvestatd start
ExecStop=/usr/bin/pvestatd stop
ExecReload=/usr/bin/pvestatd restart
Type=forking
[Install]
...
...
bin/init.d/spiceproxy.service
View file @
3c9f7ac9
...
...
@@ -5,8 +5,9 @@ Wants=pveproxy.service
After=pveproxy.service
[Service]
ExecStart=/etc/init.d/spiceproxy start
ExecStop=/etc/init.d/spiceproxy stop
ExecStart=/usr/bin/spiceproxy start
ExecStop=/usr/bin/spiceproxy stop
ExecReload=/usr/bin/spiceproxy restart
Type=forking
[Install]
...
...
bin/pveproxy
View file @
3c9f7ac9
...
...
@@ -48,6 +48,12 @@ my %daemon_options = (
pidfile
=>
'/var/run/pveproxy/pveproxy.pid'
,
);
my
$
rundir
=
"/var/run/pveproxy"
;
mkdir
($
rundir
,
0700
);
my
$
gid
=
getgrnam
(
'www-data'
)
||
die
"getgrnam failed - $!
\n
"
;
my
$
uid
=
getpwnam
(
'www-data'
)
||
die
"getpwnam failed - $!
\n
"
;
chown
($
uid
,
$
gid
,
$
rundir
);
my
$
daemon
=
__PACKAGE__
->
new
(
'pveproxy'
,
$
cmdline
,
%
daemon_options
);
sub
add_dirs
{
...
...
debian/postinst
View file @
3c9f7ac9
...
...
@@ -26,10 +26,10 @@ case "$1" in
test
-f
/etc/pve/local/pve-ssl.pem
||
exit
0
;
test
-e
/proxmox_install_mode
&&
exit
0
;
deb-systemd-invoke re
start
pvedaemon.service
deb-systemd-invoke re
start
pvestatd.service
deb-systemd-invoke re
start
pveproxy.service
deb-systemd-invoke re
start
spiceproxy.service
deb-systemd-invoke re
load
pvedaemon.service
deb-systemd-invoke re
load
pvestatd.service
deb-systemd-invoke re
load
pveproxy.service
deb-systemd-invoke re
load
spiceproxy.service
exit
0
;;
...
...
@@ -83,7 +83,7 @@ case "$1" in
if
test
!
-e
/proxmox_install_mode
;
then
for
service
in
pvedaemon pveproxy spiceproxy pvestatd
;
do
deb-systemd-invoke re
start
$service
deb-systemd-invoke re
load
$service
done
fi
...
...
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