# \[Solved\] Running a command at boot?

**URL:** https://dietpi.com/forum/t/solved-running-a-command-at-boot/3375
**Category:** Troubleshooting
**Created:** [31 July 2019 22:34 UTC](https://dietpi.com/forum/t/solved-running-a-command-at-boot/3375 "2019-07-31T22:34:55Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![ghettopi](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/9e8a1a/32.png) [@ghettopi](https://dietpi.com/forum/u/ghettopi)
#### Post date: [6 August 2019 21:07 UTC](https://dietpi.com/forum/t/solved-running-a-command-at-boot/3375/4 "2019-08-06T21:07:30Z")

</div>

> [@](#):
>
> I think I found one way I am happy with for now.
> 
> FWIW
> 
> I simply added a script into the dietpi postboot.d folder.  
> And within that one-line-script I start wireguard service via systemctl start wg-quick@wg0.
> 
> Works reliably for me.

Sorry I didn’t get to you in time, but I’m glad you sorted it out quickly. Actually it just so happens that I am having a serious problem with Wireguard.

My thread is here: [Wireguard + Mullvad. How to?](https://dietpi.com/forum/t/wireguard-mullvad-how-to/3392/1)

Would you happen to know what the problem is?

---

_[View the full topic](https://dietpi.com/forum/t/solved-running-a-command-at-boot/3375)._
