https://github.com/div72/systemd-exec
A script for running commands from the environment of a systemd unit
https://github.com/div72/systemd-exec
bash-script systemd systemd-unit
Last synced: about 1 month ago
JSON representation
A script for running commands from the environment of a systemd unit
- Host: GitHub
- URL: https://github.com/div72/systemd-exec
- Owner: div72
- License: gpl-3.0
- Created: 2024-03-23T17:38:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T17:50:18.000Z (over 2 years ago)
- Last Synced: 2025-07-25T07:54:08.881Z (11 months ago)
- Topics: bash-script, systemd, systemd-unit
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# systemd-exec
A script for running commands from the environment of a systemd unit. Requires bash, GNU coreutils and sudo.
## Usage
```bash
nobody@example.org $ systemd-exec mariadb bash
mysql@example.org $ echo $GROUP
mysql
```
## License
GNU GPL-3.0. See the LICENSE file for the license text.