Install to /usr/bin
* Standardize all install methods to use /usr/bin rather than some of them using /usr/local/bin * Make the init script executable in install-openrc
This commit is contained in:
parent
6a22597f1f
commit
55b9b16deb
7
Makefile
7
Makefile
@ -74,12 +74,12 @@ install-common:
|
|||||||
# Set up directories
|
# Set up directories
|
||||||
mkdir -p $(DESTDIR)/etc/$(PACKAGE_NAME)
|
mkdir -p $(DESTDIR)/etc/$(PACKAGE_NAME)
|
||||||
mkdir -p ${DESTDIR}/etc/logrotate.d
|
mkdir -p ${DESTDIR}/etc/logrotate.d
|
||||||
mkdir -p $(DESTDIR)/usr/local/bin
|
mkdir -p $(DESTDIR)/usr/bin
|
||||||
mkdir -p $(DESTDIR)/usr/share/man/man1
|
mkdir -p $(DESTDIR)/usr/share/man/man1
|
||||||
|
|
||||||
# Install script
|
# Install script
|
||||||
cp $(SCRIPT) $(DESTDIR)/usr/local/bin/$(PACKAGE_NAME)
|
cp $(SCRIPT) $(DESTDIR)/usr/bin/$(PACKAGE_NAME)
|
||||||
chmod 755 $(DESTDIR)/usr/local/bin/$(PACKAGE_NAME)
|
chmod 755 $(DESTDIR)/usr/bin/$(PACKAGE_NAME)
|
||||||
|
|
||||||
# Install manpage
|
# Install manpage
|
||||||
cp manpages/* $(DESTDIR)/usr/share/man/man1/
|
cp manpages/* $(DESTDIR)/usr/share/man/man1/
|
||||||
@ -113,6 +113,7 @@ install-openrc:
|
|||||||
|
|
||||||
# Install init script
|
# Install init script
|
||||||
cp openrc/pgmon.initd $(DESTDIR)/etc/init.d/pgmon
|
cp openrc/pgmon.initd $(DESTDIR)/etc/init.d/pgmon
|
||||||
|
chmod 755 $(DESTDIR)/etc/init.d/pgmon
|
||||||
|
|
||||||
# Install init script config file
|
# Install init script config file
|
||||||
cp openrc/pgmon.confd $(DESTDIR)/etc/conf.d/pgmon
|
cp openrc/pgmon.confd $(DESTDIR)/etc/conf.d/pgmon
|
||||||
|
|||||||
@ -28,7 +28,7 @@ make -C /src install-systemd DESTDIR=%{buildroot}
|
|||||||
/etc/pgmon/pgmon-service.conf
|
/etc/pgmon/pgmon-service.conf
|
||||||
/lib/systemd/system/pgmon.service
|
/lib/systemd/system/pgmon.service
|
||||||
/lib/systemd/system/pgmon@.service
|
/lib/systemd/system/pgmon@.service
|
||||||
/usr/local/bin/pgmon
|
/usr/bin/pgmon
|
||||||
/usr/share/man/man1/pgmon.1.gz
|
/usr/share/man/man1/pgmon.1.gz
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|||||||
@ -28,7 +28,7 @@ make -C /src install-systemd DESTDIR=%{buildroot}
|
|||||||
/etc/pgmon/pgmon-service.conf
|
/etc/pgmon/pgmon-service.conf
|
||||||
/lib/systemd/system/pgmon.service
|
/lib/systemd/system/pgmon.service
|
||||||
/lib/systemd/system/pgmon@.service
|
/lib/systemd/system/pgmon@.service
|
||||||
/usr/local/bin/pgmon
|
/usr/bin/pgmon
|
||||||
/usr/share/man/man1/pgmon.1.gz
|
/usr/share/man/man1/pgmon.1.gz
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|||||||
@ -7,7 +7,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/pgmon/%i-service.conf
|
EnvironmentFile=/etc/pgmon/%i-service.conf
|
||||||
User=${SERVICE_USER:-postgres}
|
User=${SERVICE_USER:-postgres}
|
||||||
ExecStart=/usr/local/bin/pgmon -c /etc/pgmon/%i.yml
|
ExecStart=/usr/bin/pgmon -c /etc/pgmon/%i.yml
|
||||||
ExecReload=kill -HUP $MAINPID
|
ExecReload=kill -HUP $MAINPID
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
Type=exec
|
Type=exec
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user