# \#systemd

**URL:** https://forums.balena.io/tag/systemd/23.md

[Latest](https://forums.balena.io/latest.md) · [Categories](https://forums.balena.io/categories.md) · [Tags](https://forums.balena.io/tags.md)

---

## [Unit failures with: balena-hostname-conf.service, balena-hostname-conf.service, balena-engine.socket](https://forums.balena.io/t/unit-failures-with-balena-hostname-conf-service-balena-hostname-conf-service-balena-engine-socket/369237)

<div class="topic-metadata">

**Author:** [@chrisruk](https://forums.balena.io/u/chrisruk)\
**Replies:** 1\
**Last updated:** [October 31, 2023, 4:50pm UTC](https://forums.balena.io/t/unit-failures-with-balena-hostname-conf-service-balena-hostname-conf-service-balena-engine-socket/369237 "2023-10-31T16:50:35Z")

</div>

Hi, I’m wondering if anyone might be able to help me debug an uncommon failure I’ve got with Balena OS and our ARM board (TM3). It happened approximately once out of 4048 reboots. Very occasionally we noticed the hos…

---

## [Balena Engine on platforms without systemd](https://forums.balena.io/t/balena-engine-on-platforms-without-systemd/337731)

<div class="topic-metadata">

**Author:** [@Qbicz](https://forums.balena.io/u/Qbicz)\
**Replies:** 8\
**Last updated:** [July 23, 2021, 6:48am UTC](https://forums.balena.io/t/balena-engine-on-platforms-without-systemd/337731 "2021-07-23T06:48:31Z")

</div>

Hi! We’re preparing to use Balena engine, however on our Linux platform we use sysVinit as an init system, and systemd is disabled. ./balena-engine ./balena-engine: error while loading shared libraries: libsystemd.so…

---

## [Systemd and DHCPd](https://forums.balena.io/t/systemd-and-dhcpd/310710)

<div class="topic-metadata">

**Author:** [@matfire](https://forums.balena.io/u/matfire)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 6:52pm UTC](https://forums.balena.io/t/systemd-and-dhcpd/310710 "2021-05-11T18:52:09Z")

</div>

Hello everyone, I’m trying to tinker with isc-dhcp-server’s package. I tried installing and following the systemd example, but installation fails at the isc-dhcp-server service activation with the error: \[Build\] \[dhc…

---

## [Building BalenaOS for Rockchip 3328 / NanoPi Neo3](https://forums.balena.io/t/building-balenaos-for-rockchip-3328-nanopi-neo3/254401)

<div class="topic-metadata">

**Author:** [@mmelnick](https://forums.balena.io/u/mmelnick)\
**Replies:** 39\
**Last updated:** [April 16, 2021, 8:15pm UTC](https://forums.balena.io/t/building-balenaos-for-rockchip-3328-nanopi-neo3/254401 "2021-04-16T20:15:45Z")

</div>

Hi all, I’m in the process of attempting to build BalenaOS support for the NanoPi Neo3. So far I’ve been reasonably successful in overcoming a variety of issues, including some documentation that doesn’t line up with wh…

---

## [Restart ModemManager from container](https://forums.balena.io/t/restart-modemmanager-from-container/218462)

<div class="topic-metadata">

**Author:** [@tibhel](https://forums.balena.io/u/tibhel)\
**Replies:** 4\
**Last updated:** [December 6, 2020, 12:59am UTC](https://forums.balena.io/t/restart-modemmanager-from-container/218462 "2020-12-06T00:59:32Z")

</div>

Hi, I need to restart the HostOS’s systemd service ModemManager from a container. Running systemctl restart ModemManager.service from hostOS works fine but I cannot do that from the container. I have dbus configured i…

---

## [Enable non-standard I2C RTC module (DS3231) on RPi 4](https://forums.balena.io/t/enable-non-standard-i2c-rtc-module-ds3231-on-rpi-4/119406)

<div class="topic-metadata">

**Author:** [@HakanL](https://forums.balena.io/u/HakanL)\
**Replies:** 5\
**Last updated:** [May 27, 2020, 7:37pm UTC](https://forums.balena.io/t/enable-non-standard-i2c-rtc-module-ds3231-on-rpi-4/119406 "2020-05-27T19:37:11Z")

</div>

I have balenaOS 2.48.0+rev1 running on my Raspberry Pi 4 fine. But I need to have a RTC module on it (DS3231), which would be fine in standard configuration (just enable the dtoverlay command). The issue is that I have t…

---

## [How to execute task after every reboot from host OS?](https://forums.balena.io/t/how-to-execute-task-after-every-reboot-from-host-os/47802)

<div class="topic-metadata">

**Author:** [@mbedare](https://forums.balena.io/u/mbedare)\
**Replies:** 3\
**Last updated:** [November 30, 2019, 1:29am UTC](https://forums.balena.io/t/how-to-execute-task-after-every-reboot-from-host-os/47802 "2019-11-30T01:29:01Z")

</div>

I want to run iptables like commands after every reboot. These commands are not available from container. I tried systemd but since /etc/systemd is read-only, I am not able to add new service which will execute these tas…

---

## [\`env INITSYSTEM on\` not working](https://forums.balena.io/t/env-initsystem-on-not-working/1665)

<div class="topic-metadata">

**Author:** [@niklasnorin](https://forums.balena.io/u/niklasnorin)\
**Replies:** 16\
**Last updated:** [August 1, 2019, 3:28pm UTC](https://forums.balena.io/t/env-initsystem-on-not-working/1665 "2019-08-01T15:28:42Z")

</div>

We have a simple dockerfile, similar to: FROM resin/armv7hf-debian ENV INITSYSTEM on CMD /app/start.sh However, this does not cause systemd to start as expected. Exposing this device to the environment variable INITSY…

---

## [Systemd not starting with INITSYSTEM on](https://forums.balena.io/t/systemd-not-starting-with-initsystem-on/15224)

<div class="topic-metadata">

**Author:** [@Guff666](https://forums.balena.io/u/Guff666)\
**Replies:** 1\
**Last updated:** [June 12, 2019, 2:37pm UTC](https://forums.balena.io/t/systemd-not-starting-with-initsystem-on/15224 "2019-06-12T14:37:00Z")

</div>

I have crreated a starter project using a raspberry pi v1. I have the following at the top of my Dockerfile.template FROM balenalib/%%BALENA\_MACHINE\_NAME%%-debian:latest # enable container init system. ENV INITSYSTEM …

---

## [Systemd not available within container despite INITSYSTEM on](https://forums.balena.io/t/systemd-not-available-within-container-despite-initsystem-on/5939)

<div class="topic-metadata">

**Author:** [@JonathanDavis](https://forums.balena.io/u/JonathanDavis)\
**Replies:** 4\
**Last updated:** [April 9, 2019, 7:08am UTC](https://forums.balena.io/t/systemd-not-available-within-container-despite-initsystem-on/5939 "2019-04-09T07:08:39Z")

</div>

HI All, I have trawled the internet and these forums but am unfortunately still stuck with a problem concerning systemd inside of a container running on balenaOS. My environment: HOST OS: balenaOS 2.31.5+rev1 Supervi…

---

## [Is it sane to override launch.service if INITSYSTEM=on?](https://forums.balena.io/t/is-it-sane-to-override-launch-service-if-initsystem-on/1785)

<div class="topic-metadata">

**Author:** [@bgentry](https://forums.balena.io/u/bgentry)\
**Replies:** 8\
**Last updated:** [August 10, 2018, 4:21pm UTC](https://forums.balena.io/t/is-it-sane-to-override-launch-service-if-initsystem-on/1785 "2018-08-10T16:21:15Z")

</div>

When using INITSYSTEM=on, Resin no longer restarts my main process when it crashes (it doesn’t restart the container either). The systemd unit /etc/systemd/system/launch.service is pretty simple: \[Unit\] Description=Res…

---

## [How do I create a bootable image with balena?](https://forums.balena.io/t/how-do-i-create-a-bootable-image-with-balena/2458)

<div class="topic-metadata">

**Author:** [@vicary](https://forums.balena.io/u/vicary)\
**Replies:** 6\
**Last updated:** [February 3, 2018, 6:34am UTC](https://forums.balena.io/t/how-do-i-create-a-bootable-image-with-balena/2458 "2018-02-03T06:34:12Z")

</div>

The documentation on balena is quite limited on this topic. I can build normal docker images and run them in my Raspberry Pi 3 with balena, but how do I make them bootable; And how do I do the update regarding “to allo…

---

## [Resin-updates.lock file exists](https://forums.balena.io/t/resin-updates-lock-file-exists/2005)

<div class="topic-metadata">

**Author:** [@weiqing121](https://forums.balena.io/u/weiqing121)\
**Replies:** 5\
**Last updated:** [October 18, 2017, 7:08pm UTC](https://forums.balena.io/t/resin-updates-lock-file-exists/2005 "2017-10-18T19:08:01Z")

</div>

Hi all, I switched the device from one project to another. But, it never finish the downloading. There are the errors: 17.10.17 12:52:12 (-0400) Downloading delta for application 'registry2.resin.io/geniedev/03ddc3e201…

---

## [Starting a process with systemd on a resin.io managed device](https://forums.balena.io/t/starting-a-process-with-systemd-on-a-resin-io-managed-device/1801)

<div class="topic-metadata">

**Author:** [@Tristan107](https://forums.balena.io/u/Tristan107)\
**Replies:** 9\
**Last updated:** [September 12, 2017, 6:19pm UTC](https://forums.balena.io/t/starting-a-process-with-systemd-on-a-resin-io-managed-device/1801 "2017-09-12T18:19:58Z")

</div>

Hi, Is there anything to do other than putting the INITSYSTEM env var anywhere in your dockerfile ? I’m totally stuck here to make the TICK stack managed by systemd and I’m not sure if it’s Resin related or just some s…

---

## [Sudo systemctl: failed to get d-bus connection](https://forums.balena.io/t/sudo-systemctl-failed-to-get-d-bus-connection/1659)

<div class="topic-metadata">

**Author:** [@spacelite](https://forums.balena.io/u/spacelite)\
**Replies:** 2\
**Last updated:** [August 14, 2017, 4:36pm UTC](https://forums.balena.io/t/sudo-systemctl-failed-to-get-d-bus-connection/1659 "2017-08-14T16:36:58Z")

</div>

I wanted to add a user in my Dockerfile, but when I do systemctl doesn’t work correctly. Here’s a minimal example: FROM resin/%%RESIN\_MACHINE\_NAME%%-debian:latest ENV INITSYSTEM on RUN adduser --disabled-password --…

---

## [Time synchronization](https://forums.balena.io/t/time-synchronization/941)

<div class="topic-metadata">

**Author:** [@sunil](https://forums.balena.io/u/sunil)\
**Replies:** 3\
**Last updated:** [May 11, 2017, 4:46pm UTC](https://forums.balena.io/t/time-synchronization/941 "2017-05-11T16:46:43Z")

</div>

Hi, I've noticed in my build the etc/systemd/timesyncd.conf is empty. There also is no /var/lib/systemd/clock/ folder The issue I'm dealing with is the device seems to have the right NTP time, but the incorrect TZ. It's …

---

## [DBus connection with INITSYSTEM ON](https://forums.balena.io/t/dbus-connection-with-initsystem-on/1269)

<div class="topic-metadata">

**Author:** [@tjc42](https://forums.balena.io/u/tjc42)\
**Replies:** 7\
**Last updated:** [June 22, 2017, 10:30am UTC](https://forums.balena.io/t/dbus-connection-with-initsystem-on/1269 "2017-06-22T10:30:55Z")

</div>

Question regarding the INITSYSTEM ON setting and DBus on a Raspberry Pi 3 device: \* With INITSYSTEM OFF I can connect to DBus fine. \* With INITSYSTEM ON I get the error below. To fix it, I have to turn INITSYSTEM off ag…

---

## [Installing A Package That Requires The System To Be Up](https://forums.balena.io/t/installing-a-package-that-requires-the-system-to-be-up/1201)

<div class="topic-metadata">

**Author:** [@Agalewsky](https://forums.balena.io/u/Agalewsky)\
**Replies:** 1\
**Last updated:** [June 8, 2017, 12:21pm UTC](https://forums.balena.io/t/installing-a-package-that-requires-the-system-to-be-up/1201 "2017-06-08T12:21:14Z")

</div>

Here is a stumper. I have some rpm's that won't install correctly if the system is not fully up and running (not particularly well designed). Since this is the case they apparently can't be installed via the Dockerfile…

---

## [Using Environment Variables in a Service File](https://forums.balena.io/t/using-environment-variables-in-a-service-file/945)

<div class="topic-metadata">

**Author:** [@bunbury](https://forums.balena.io/u/bunbury)\
**Replies:** 2\
**Last updated:** [May 11, 2017, 3:49pm UTC](https://forums.balena.io/t/using-environment-variables-in-a-service-file/945 "2017-05-11T15:49:55Z")

</div>

I have a systemd service that runs a python script which requires an environment variable that I have defined through resin. When I run the script from the command line, it runs absolutely fine. Yet when run through a se…

---

## [Error starting systemd service](https://forums.balena.io/t/error-starting-systemd-service/916)

<div class="topic-metadata">

**Author:** [@niklasnorin](https://forums.balena.io/u/niklasnorin)\
**Replies:** 4\
**Last updated:** [May 8, 2017, 2:18pm UTC](https://forums.balena.io/t/error-starting-systemd-service/916 "2017-05-08T14:18:39Z")

</div>

I want to run my application as a service which starts on boot and always restarts if it exists for any reason. To do this I'm trying to create and run a systemd service. However, I get an error when I manually trying …
