Skip to content

Drop service wrappers#5

Merged
bastelfreak merged 1 commit intoOpenVoxProject:mainfrom
ekohl:drop-service-wrappers
May 23, 2025
Merged

Drop service wrappers#5
bastelfreak merged 1 commit intoOpenVoxProject:mainfrom
ekohl:drop-service-wrappers

Conversation

@ekohl
Copy link
Copy Markdown
Contributor

@ekohl ekohl commented Feb 20, 2025

These service wrappers only replicate the default systemd behavior. Running it directly simplifies it greatly.

It's marked as a draft because it's only received very minimal testing from my side. It may be wise to first merge #2 and #4.

Copy link
Copy Markdown
Contributor Author

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we go this route, we may also want to do the same for Debian. There we have some complication that there's also sysvinit. I wouldn't mind dropping that support and going systemd-only, but that could be a larger discussion.

The thought process behind this is that the puppetserver script has IMHO too many complexities and I'd like to trim it down.

@bastelfreak
Copy link
Copy Markdown
Contributor

If we go this route, we may also want to do the same for Debian. There we have some complication that there's also sysvinit.

Yes please. I don't see why we should support sysv.

@ekohl
Copy link
Copy Markdown
Contributor Author

ekohl commented Feb 20, 2025

#8 takes a step in the sysvinit removal direction by at least making sure every platform expects systemd to be present.

@ekohl ekohl changed the title Drop service wrappers for RPMs Drop service wrappers Feb 21, 2025
@ekohl ekohl force-pushed the drop-service-wrappers branch from 0a3e34b to e53b600 Compare February 21, 2025 15:44
@ekohl
Copy link
Copy Markdown
Contributor Author

ekohl commented Feb 21, 2025

I've updated it to include #8, a commit to remove sysvinit on Debian and then modified the service wrapper removal to also cover Debian. Then the cli tools become useless, so they're dropped. This also removes the need to manage the rundir, which help a lot to remove things.

I'm unsure about the foreground cli app.

@ekohl ekohl force-pushed the drop-service-wrappers branch 2 times, most recently from ccd884c to f8bb47e Compare May 7, 2025 13:09
@ekohl
Copy link
Copy Markdown
Contributor Author

ekohl commented May 23, 2025

Includes #14 now.

@rwaffen
Copy link
Copy Markdown
Member

rwaffen commented May 23, 2025

closes: OpenVoxProject/planning#69

These service wrappers only replicate the default systemd behavior.
Running it directly simplifies it greatly because it also drops the need
to manage the rundir, which systemd will now take care of for us.
@ekohl ekohl force-pushed the drop-service-wrappers branch from 68ffc89 to b2de7c7 Compare May 23, 2025 14:15
@ekohl ekohl marked this pull request as ready for review May 23, 2025 14:15
@bastelfreak bastelfreak merged commit 0de974c into OpenVoxProject:main May 23, 2025
3 checks passed
@ekohl ekohl deleted the drop-service-wrappers branch May 23, 2025 15:21
bastelfreak added a commit that referenced this pull request Jul 12, 2025
This fixes a regression introduced in
#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit that referenced this pull request Jul 12, 2025
This fixes a regression introduced in
#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jul 14, 2025
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jul 15, 2025
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
@bastelfreak
Copy link
Copy Markdown
Contributor

This introduced a regression. The systemd units now have:

ExecStart="$JAVA_BIN" $JAVA_ARGS

Turns out: Variable interpolation isn't support for the first arg of ExecStart. the unit will fail with:

/usr/lib/systemd/system/puppetserver.service:38: Executable "$JAVA_BIN" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"

It doesn't matter if the variable is in quotes or not. from #systemd on IRC:

2025-07-19 22:44:00     bastelfreak     hey. Can someone tell me what I can use as first parameter for ExecStart= in a unit? I'm trying to use a variable that I got from EnvironmentFile=..., e.g. ExecStart=$JAVA_BIN $JAVA_ARGS and that fails with: Executable "$JAVA_BIN" not found in path
2025-07-19 22:44:47     bastelfreak     If I update it to ExecStart=/usr/bin/java $JAVA_ARGS it works. Can I only use variables for parameters, but not the actual thing I'm starting?
2025-07-19 22:45:46     bastelfreak     I can source the provided environmentfile and echo $JAVA_BIN, so there doesn't seem to be a typo in the file
2025-07-19 22:47:11     bastelfreak     https://gist.github.com/bastelfreak/3dd2abd803dee92cd0b58a1efd1010ee unit file + environment file
2025-07-19 22:52:42     gdamjan bastelfreak: it needs to be a full path
2025-07-19 22:54:33     bastelfreak     derp

I will fix this in #2

kenyon added a commit to kenyon/openvox-ezbake that referenced this pull request Jul 19, 2025
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Jan 7, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Apr 3, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Apr 3, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Apr 3, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Apr 3, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Apr 3, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Apr 3, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Apr 8, 2026
This fixes a regression introduced in
OpenVoxProject#5 / b2de7c7

openvox-server has some ERB templates:
https://github.com/OpenVoxProject/openvox-server/tree/main/resources/ext/cli
and since above change, they aren't rendered anymore. The templates are
still required and builds fail.

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
bastelfreak added a commit to bastelfreak/ezbake that referenced this pull request Apr 8, 2026
The `/usr` directory contains only two files:

```
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/puppetserver.conf
/usr/share
/usr/share/doc
/usr/share/doc/openvox-server
/usr/share/doc/openvox-server/changelog.gz
```

Since OpenVoxProject#5, we don't package
/usr/lib/tmpfiles.d/puppetserver.conf anymore. And the changelog.gz is
autogenerated by fpm afterwards. That means that in our packaging
directory, there is no `/usr`. If we force fpm to package it, it will
raise an error.

This change was tested in https://github.com/OpenVoxProject/openvox-server

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
bastelfreak pushed a commit to bastelfreak/ezbake that referenced this pull request Apr 8, 2026
ezbake-functions.sh.erb uses the deprecated netstat from the
deprecated net-tools package. But I can't find any uses of the
functions in ezbake-functions.sh.erb, so let's remove it. The
functions were used in the wrappers which were eliminated in OpenVoxProject#5.

Fixes OpenVoxProject#13.

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants