Skip to content

Commit

Permalink
fix in service file
Browse files Browse the repository at this point in the history
  • Loading branch information
species committed Sep 9, 2020
1 parent f0712b9 commit 683fec9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dch --create --newversion 0.0.1 --package hellodebian

### Generate src pkg

as root:
as user:
```
debuild -i -us -uc -S
```
Expand All @@ -37,3 +37,19 @@ OS=raspbian DIST=buster ARCH=armhf pbuilder --create
OS=debian DIST=buster ARCH=amd64 pbuilder --create
```

### release new version

#### update pbuilder env (daily)

```
OS=raspbian DIST=buster ARCH=armhf pbuilder update
OS=debian DIST=buster ARCH=amd64 pbuilder update
```

#### building

* *editeditedit*
* user@host: dch -i # increment
* user@host: debuild -i -us -uc -S
* root@host: cd ..; OS=raspbian DIST=buster ARCH=armhf pbuilder build $(ls -1 *dsc --sort=time|head -1)

14 changes: 14 additions & 0 deletions debian/example.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Example service


[Service]
User=root
Restart=always
Environment=PYTHONUNBUFFERED=true
WatchdogSec=20
RestartSec=5
ExecStart=/usr/bin/example.py

[Install]
WantedBy=multi-user.target

0 comments on commit 683fec9

Please sign in to comment.