34 System failure
35 Data Missing
36 Unexpected Data Value
21 Facility Not Supported
set mailserver smtp.gmail.com port 587 username "[email protected]" password "password" using tlsv1 with timeout 30 seconds |
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_checked="true"> | |
<shape> | |
<solid android:color="@android:color/white"/> | |
<corners android:radius="5dp"/> | |
</shape> | |
</item> | |
<item android:drawable="@drawable/vector"/> | |
</layer-list> |
Services declared as oneshot
are expected to take some action and exit immediatelly (thus, they are not really services,
no running processes remain). A common pattern for these type of service is to be defined by a setup and a teardown action.
Let's create a example foo
service that when started creates a file, and when stopped it deletes it.
Create executable file /opt/foo/setup-foo.sh
: