# Balena-Sound: How to disable services, eg. don't run UPNP

**URL:** <https://forums.balena.io/t/balena-sound-how-to-disable-services-eg-dont-run-upnp/157481>\
**Category:** Project help\
**Created:** [July 20, 2020, 1:21pm UTC](https://forums.balena.io/t/balena-sound-how-to-disable-services-eg-dont-run-upnp/157481 "2020-07-20T13:21:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![0rangutan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/0rangutan/32/4119_2.png) [@0rangutan](https://forums.balena.io/u/0rangutan)\
**Post date:** [July 20, 2020, 1:21pm UTC](https://forums.balena.io/t/balena-sound-how-to-disable-services-eg-dont-run-upnp/157481/1 "2020-07-20T13:21:46Z")

</div>

Is it possible to disable individual Balena-Sound services like Bluetooth and UPNP via variables set in the in Balena Dashboard?  
The UI can be used to start/stop, but I am looking for a way to disable these from starting on boot.  
Any help much appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![phil-d-wilson](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/phil-d-wilson/32/3730_2.png) [@phil-d-wilson](https://forums.balena.io/u/phil-d-wilson)\
**Post date:** [July 20, 2020, 1:35pm UTC](https://forums.balena.io/t/balena-sound-how-to-disable-services-eg-dont-run-upnp/157481/5 "2020-07-20T13:35:28Z")

</div>

Hi, welcome to the forums.

Can you let me know a little more? Do you want the services to be in the application still, only stopped from boot? Or would you like to remove them altogether?

The latter can be done, but you’ll need to use the more advanced method of deploying balenaSound and pushed the code to your application manually (i.e. don’t use the “Deploy with balena” button):

> **[Getting started - Home](https://sound.balenalabs.io/docs/getting-started/)**
>
> Build a single or multi-room streamer for an existing audio device using a Raspberry Pi! Supports Bluetooth, Airplay and Spotify Connect

If you have the code downloaded from GitHub, you can just comment out the services you don’t want in your `docker-compose.yml` file and `balena push` to your application, and those services will be removed.

Let me know if you need any more help,  
Phil

---

<div class="post-metadata">

**Author:** ![0rangutan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/0rangutan/32/4119_2.png) [@0rangutan](https://forums.balena.io/u/0rangutan)\
**Post date:** [July 20, 2020, 1:42pm UTC](https://forums.balena.io/t/balena-sound-how-to-disable-services-eg-dont-run-upnp/157481/7 "2020-07-20T13:42:47Z")

</div>

Thanks Phil.  
I am looking to keep them in the application but not run at boot.  
I am doing everything through the Balena dashboard, following the helpful introduction guide. I’m not set up for the command line tools - I could do so, but just wondered if there was an easy way through the service variables?

---

<div class="post-metadata">

**Author:** ![phil-d-wilson](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/phil-d-wilson/32/3730_2.png) [@phil-d-wilson](https://forums.balena.io/u/phil-d-wilson)\
**Post date:** [July 20, 2020, 2:07pm UTC](https://forums.balena.io/t/balena-sound-how-to-disable-services-eg-dont-run-upnp/157481/8 "2020-07-20T14:07:35Z")

</div>

Hi, no there isn’t a way to do this with service variables on this project. We have considered doing this in the past - but there comes a point where you’re making a project overly complex or too configurable. If you are willing to install the `balena cli` and use `balena push` then you can definitely do this yourself, though.

One way would be to edit the `docker-compose` to change any services you don’t want to auto-restart to `restart_policy: none` and then in the bash script of each service to exit if a service variable is set or not set (up to you).

Phil
